mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-08 02:36:27 -05:00
8 lines
293 B
Cheetah
8 lines
293 B
Cheetah
func (s {{.StructName}}) {{.GoFieldName}}() {{.FieldType}} {
|
|
return s.m.Get(types.NewString("{{.FieldName}}")).({{.FieldType}})
|
|
}
|
|
|
|
func (s {{.StructName}}) Set{{.GoFieldName}}(p {{.FieldType}}) {{.StructName}} {
|
|
return {{.StructName}}FromVal(s.m.Set(types.NewString("{{.FieldName}}"), p))
|
|
}
|