schema/field: generate numeric builder with new godoc

This commit is contained in:
Ariel Mashraki
2021-01-10 14:20:09 +02:00
committed by Ariel Mashraki
parent e62e5c26be
commit f2aa1854e4
3 changed files with 16 additions and 16 deletions

View File

@@ -116,7 +116,7 @@ func (b *{{ $builder }}) DefaultFunc(fn interface{}) *{{ $builder }} {
}
// Nillable indicates that this field is a nillable.
// Unlike "Optional" only fields, "Nillable" fields are pointers in the generated field.
// Unlike "Optional" only fields, "Nillable" fields are pointers in the generated struct.
func (b *{{ $builder }}) Nillable() *{{ $builder }} {
b.desc.Nillable = true
return b
@@ -276,7 +276,7 @@ func (b *{{ $builder }}) Default(i {{ $t }}) *{{ $builder }} {
}
// Nillable indicates that this field is a nillable.
// Unlike "Optional" only fields, "Nillable" fields are pointers in the generated field.
// Unlike "Optional" only fields, "Nillable" fields are pointers in the generated struct.
func (b *{{ $builder }}) Nillable() *{{ $builder }} {
b.desc.Nillable = true
return b