MCPcopy Create free account
hub / github.com/Monibuca/engine / SetBool

Method SetBool

util/strutct.go:81–85  ·  view source on GitHub ↗
(name string, value bool)

Source from the content-addressed store, hash-verified

79 }
80}
81func (in *Instance) SetBool(name string, value bool) {
82 if i, ok := in.index[name]; ok {
83 in.instance.Field(i).SetBool(value)
84 }
85}
86func (in *Instance) SetInt64(name string, value int64) {
87 if i, ok := in.index[name]; ok {
88 in.instance.Field(i).SetInt(value)

Callers

nothing calls this directly

Calls 1

FieldMethod · 0.80

Tested by

no test coverage detected