Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 1024 | |
| 1025 | // Format implements the NodeFormatter interface. |
| 1026 | func (s LockingStrength) Format(ctx *FmtCtx) { |
| 1027 | if s != ForNone { |
| 1028 | ctx.WriteString(" ") |
| 1029 | ctx.WriteString(s.String()) |
| 1030 | } |
| 1031 | } |
| 1032 | |
| 1033 | // Max returns the maximum of the two locking strengths. |
| 1034 | func (s LockingStrength) Max(s2 LockingStrength) LockingStrength { |