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

Method Field

util/strutct.go:69–75  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

67)
68
69func (in Instance) Field(name string) (reflect.Value, error) {
70 if i, ok := in.index[name]; ok {
71 return in.instance.Field(i), nil
72 } else {
73 return reflect.Value{}, FieldNoExist
74 }
75}
76func (in *Instance) SetString(name, value string) {
77 if i, ok := in.index[name]; ok {
78 in.instance.Field(i).SetString(value)

Callers 9

MarshalMethod · 0.80
MarshalMethod · 0.80
BuildMethod · 0.80
SetStringMethod · 0.80
SetBoolMethod · 0.80
SetInt64Method · 0.80
SetFloat64Method · 0.80
ParseMethod · 0.80
assignMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected