mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-05 02:59:44 -06:00
9 lines
322 B
Cheetah
9 lines
322 B
Cheetah
func (s {{.StructName}}) {{.GoFieldName}}() {{.FieldType}} {
|
|
return {{fromVal .FieldType}}(s.m.Get(types.NewString("{{.FieldName}}")))
|
|
}
|
|
|
|
func (s {{.StructName}}) Set{{.GoFieldName}}(p {{.FieldType}}) {{.StructName}} {
|
|
return {{fromVal .StructName}}(s.m.Set(types.NewString("{{.FieldName}}"), p{{toVal .FieldType}}))
|
|
}
|
|
|