mirror of
https://github.com/fumiama/terasu-cloudflared.git
synced 2026-06-12 22:40:32 +08:00
11 lines
313 B
Plaintext
11 lines
313 B
Plaintext
func (s {{.Node.Name}}) {{.Field.Name|title}}() bool {
|
|
{{template "_checktag" . -}}
|
|
return {{if .Default}}!{{end}}s.Struct.Bit({{.Field.Slot.Offset}})
|
|
}
|
|
|
|
func (s {{.Node.Name}}) Set{{.Field.Name|title}}(v bool) {
|
|
{{template "_settag" . -}}
|
|
s.Struct.SetBit({{.Field.Slot.Offset}}, {{if .Default}}!{{end}}v)
|
|
}
|
|
|