mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
schema/field: generate numeric builder with new godoc
This commit is contained in:
committed by
Ariel Mashraki
parent
e62e5c26be
commit
f2aa1854e4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user