Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 1020 | |
| 1021 | // Format implements the NodeFormatter interface. |
| 1022 | func (s LockingStrength) Format(ctx *FmtCtx) { |
| 1023 | if s != ForNone { |
| 1024 | ctx.WriteString(" ") |
| 1025 | ctx.WriteString(s.String()) |
| 1026 | } |
| 1027 | } |
| 1028 | |
| 1029 | // Max returns the maximum of the two locking strengths. |
| 1030 | func (s LockingStrength) Max(s2 LockingStrength) LockingStrength { |
nothing calls this directly
no test coverage detected