Documentation
¶
Overview ¶
Default generated models package docs (at least one file is necessary in a models package)
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
Index ¶
- Constants
- func AfterCreateFromFront[Type Gongstruct](stage *StageStruct, instance *Type)
- func AfterDeleteFromFront[Type Gongstruct](stage *StageStruct, staged, front *Type)
- func AfterReadFromFront[Type Gongstruct](stage *StageStruct, instance *Type)
- func AfterUpdateFromFront[Type Gongstruct](stage *StageStruct, old, new *Type)
- func CompareGongstructByName[T PointerToGongstruct](a, b T) int
- func EvictInOtherSlices[OwningType PointerToGongstruct, FieldType PointerToGongstruct](stage *StageStruct, owningInstance OwningType, sliceField []FieldType, ...)
- func GetAssociationName[Type Gongstruct]() *Type
- func GetFieldStringValue[Type Gongstruct](instance Type, fieldName string) (res string)
- func GetFieldStringValueFromPointer[Type PointerToGongstruct](instance Type, fieldName string) (res string)
- func GetFields[Type Gongstruct]() (res []string)
- func GetFieldsFromPointer[Type PointerToGongstruct]() (res []string)
- func GetGongstrucsSorted[T PointerToGongstruct](stage *StageStruct) (sortedSlice []T)
- func GetGongstructInstancesMap[Type Gongstruct](stage *StageStruct) *map[string]*Type
- func GetGongstructInstancesSet[Type Gongstruct](stage *StageStruct) *map[*Type]any
- func GetGongstructInstancesSetFromPointerType[Type PointerToGongstruct](stage *StageStruct) *map[Type]any
- func GetGongstructName[Type Gongstruct]() (res string)
- func GetPointerReverseMap[Start, End Gongstruct](fieldname string, stage *StageStruct) map[*End][]*Start
- func GetPointerToGongstructName[Type PointerToGongstruct]() (res string)
- func GetSliceOfPointersReverseMap[Start, End Gongstruct](fieldname string, stage *StageStruct) map[*End]*Start
- func GongGetMap[Type GongstructMapString](stage *StageStruct) *Type
- func GongGetSet[Type GongstructSet](stage *StageStruct) *Type
- func IntToLetters(number int32) (letters string)
- func IsStaged[Type Gongstruct](stage *StageStruct, instance *Type) (ok bool)
- func ParseAstFile(stage *StageStruct, pathToFile string) error
- func ParseAstFileFromAst(stage *StageStruct, inFile *ast.File, fset *token.FileSet) error
- func Serialize[Type Gongstruct](stage *StageStruct, tab Tabulator)
- func SerializeExcelize[Type Gongstruct](stage *StageStruct, f *excelize.File)
- func SerializeStage(stage *StageStruct, filename string)
- func SetCallbackAfterCreateFromFront[Type Gongstruct](stage *StageStruct, callback OnAfterCreateInterface[Type])
- func SetCallbackAfterDeleteFromFront[Type Gongstruct](stage *StageStruct, callback OnAfterDeleteInterface[Type])
- func SetCallbackAfterReadFromFront[Type Gongstruct](stage *StageStruct, callback OnAfterReadInterface[Type])
- func SetCallbackAfterUpdateFromFront[Type Gongstruct](stage *StageStruct, callback OnAfterUpdateInterface[Type])
- func SetOrchestratorOnAfterUpdate[Type Gongstruct](stage *StageStruct)
- func SortGongstructSetByName[T PointerToGongstruct](set map[T]any) (sortedSlice []T)
- func StageBranch[Type Gongstruct](stage *StageStruct, instance *Type)
- func UnmarshallGongstructStaging(stage *StageStruct, cmap *ast.CommentMap, assignStmt *ast.AssignStmt, ...) (instance any, identifier string, gongstructName string, fieldName string)
- func UnstageBranch[Type Gongstruct](stage *StageStruct, instance *Type)
- type AllModelsStructCreateInterface
- type AllModelsStructDeleteInterface
- type BackRepoInterface
- type CheckBox
- func (checkbox *CheckBox) Checkout(stage *StageStruct) *CheckBox
- func (checkbox *CheckBox) Commit(stage *StageStruct) *CheckBox
- func (checkbox *CheckBox) CommitVoid(stage *StageStruct)
- func (checkbox *CheckBox) GetName() (res string)
- func (checkbox *CheckBox) Stage(stage *StageStruct) *CheckBox
- func (checkbox *CheckBox) Unstage(stage *StageStruct) *CheckBox
- func (checkbox *CheckBox) UnstageVoid(stage *StageStruct)
- type CheckBox_WOP
- type ExcelizeTabulator
- type FormDiv
- func (formdiv *FormDiv) Checkout(stage *StageStruct) *FormDiv
- func (formdiv *FormDiv) Commit(stage *StageStruct) *FormDiv
- func (formdiv *FormDiv) CommitVoid(stage *StageStruct)
- func (formdiv *FormDiv) GetName() (res string)
- func (formdiv *FormDiv) Stage(stage *StageStruct) *FormDiv
- func (formdiv *FormDiv) Unstage(stage *StageStruct) *FormDiv
- func (formdiv *FormDiv) UnstageVoid(stage *StageStruct)
- type FormDiv_WOP
- type FormEditAssocButton
- func (formeditassocbutton *FormEditAssocButton) Checkout(stage *StageStruct) *FormEditAssocButton
- func (formeditassocbutton *FormEditAssocButton) Commit(stage *StageStruct) *FormEditAssocButton
- func (formeditassocbutton *FormEditAssocButton) CommitVoid(stage *StageStruct)
- func (formeditassocbutton *FormEditAssocButton) GetName() (res string)
- func (formEditAssocButton *FormEditAssocButton) OnAfterUpdate(stage *StageStruct, stagedInstance, frontInstance *FormEditAssocButton)
- func (formeditassocbutton *FormEditAssocButton) Stage(stage *StageStruct) *FormEditAssocButton
- func (formeditassocbutton *FormEditAssocButton) Unstage(stage *StageStruct) *FormEditAssocButton
- func (formeditassocbutton *FormEditAssocButton) UnstageVoid(stage *StageStruct)
- type FormEditAssocButtonInterface
- type FormEditAssocButtonOrchestrator
- type FormEditAssocButton_WOP
- type FormField
- func (formfield *FormField) Checkout(stage *StageStruct) *FormField
- func (formfield *FormField) Commit(stage *StageStruct) *FormField
- func (formfield *FormField) CommitVoid(stage *StageStruct)
- func (formfield *FormField) GetName() (res string)
- func (formfield *FormField) Stage(stage *StageStruct) *FormField
- func (formfield *FormField) Unstage(stage *StageStruct) *FormField
- func (formfield *FormField) UnstageVoid(stage *StageStruct)
- type FormFieldDate
- func (formfielddate *FormFieldDate) Checkout(stage *StageStruct) *FormFieldDate
- func (formfielddate *FormFieldDate) Commit(stage *StageStruct) *FormFieldDate
- func (formfielddate *FormFieldDate) CommitVoid(stage *StageStruct)
- func (formfielddate *FormFieldDate) GetName() (res string)
- func (formfielddate *FormFieldDate) Stage(stage *StageStruct) *FormFieldDate
- func (formfielddate *FormFieldDate) Unstage(stage *StageStruct) *FormFieldDate
- func (formfielddate *FormFieldDate) UnstageVoid(stage *StageStruct)
- type FormFieldDateTime
- func (formfielddatetime *FormFieldDateTime) Checkout(stage *StageStruct) *FormFieldDateTime
- func (formfielddatetime *FormFieldDateTime) Commit(stage *StageStruct) *FormFieldDateTime
- func (formfielddatetime *FormFieldDateTime) CommitVoid(stage *StageStruct)
- func (formfielddatetime *FormFieldDateTime) GetName() (res string)
- func (formfielddatetime *FormFieldDateTime) Stage(stage *StageStruct) *FormFieldDateTime
- func (formfielddatetime *FormFieldDateTime) Unstage(stage *StageStruct) *FormFieldDateTime
- func (formfielddatetime *FormFieldDateTime) UnstageVoid(stage *StageStruct)
- type FormFieldDateTime_WOP
- type FormFieldDate_WOP
- type FormFieldFloat64
- func (formfieldfloat64 *FormFieldFloat64) Checkout(stage *StageStruct) *FormFieldFloat64
- func (formfieldfloat64 *FormFieldFloat64) Commit(stage *StageStruct) *FormFieldFloat64
- func (formfieldfloat64 *FormFieldFloat64) CommitVoid(stage *StageStruct)
- func (formfieldfloat64 *FormFieldFloat64) GetName() (res string)
- func (formfieldfloat64 *FormFieldFloat64) Stage(stage *StageStruct) *FormFieldFloat64
- func (formfieldfloat64 *FormFieldFloat64) Unstage(stage *StageStruct) *FormFieldFloat64
- func (formfieldfloat64 *FormFieldFloat64) UnstageVoid(stage *StageStruct)
- type FormFieldFloat64_WOP
- type FormFieldInt
- func (formfieldint *FormFieldInt) Checkout(stage *StageStruct) *FormFieldInt
- func (formfieldint *FormFieldInt) Commit(stage *StageStruct) *FormFieldInt
- func (formfieldint *FormFieldInt) CommitVoid(stage *StageStruct)
- func (formfieldint *FormFieldInt) GetName() (res string)
- func (formfieldint *FormFieldInt) Stage(stage *StageStruct) *FormFieldInt
- func (formfieldint *FormFieldInt) Unstage(stage *StageStruct) *FormFieldInt
- func (formfieldint *FormFieldInt) UnstageVoid(stage *StageStruct)
- type FormFieldInt_WOP
- type FormFieldSelect
- func (formfieldselect *FormFieldSelect) Checkout(stage *StageStruct) *FormFieldSelect
- func (formfieldselect *FormFieldSelect) Commit(stage *StageStruct) *FormFieldSelect
- func (formfieldselect *FormFieldSelect) CommitVoid(stage *StageStruct)
- func (formfieldselect *FormFieldSelect) GetName() (res string)
- func (formfieldselect *FormFieldSelect) Stage(stage *StageStruct) *FormFieldSelect
- func (formfieldselect *FormFieldSelect) Unstage(stage *StageStruct) *FormFieldSelect
- func (formfieldselect *FormFieldSelect) UnstageVoid(stage *StageStruct)
- type FormFieldSelect_WOP
- type FormFieldString
- func (formfieldstring *FormFieldString) Checkout(stage *StageStruct) *FormFieldString
- func (formfieldstring *FormFieldString) Commit(stage *StageStruct) *FormFieldString
- func (formfieldstring *FormFieldString) CommitVoid(stage *StageStruct)
- func (formfieldstring *FormFieldString) GetName() (res string)
- func (formfieldstring *FormFieldString) Stage(stage *StageStruct) *FormFieldString
- func (formfieldstring *FormFieldString) Unstage(stage *StageStruct) *FormFieldString
- func (formfieldstring *FormFieldString) UnstageVoid(stage *StageStruct)
- type FormFieldString_WOP
- type FormFieldTime
- func (formfieldtime *FormFieldTime) Checkout(stage *StageStruct) *FormFieldTime
- func (formfieldtime *FormFieldTime) Commit(stage *StageStruct) *FormFieldTime
- func (formfieldtime *FormFieldTime) CommitVoid(stage *StageStruct)
- func (formfieldtime *FormFieldTime) GetName() (res string)
- func (formfieldtime *FormFieldTime) Stage(stage *StageStruct) *FormFieldTime
- func (formfieldtime *FormFieldTime) Unstage(stage *StageStruct) *FormFieldTime
- func (formfieldtime *FormFieldTime) UnstageVoid(stage *StageStruct)
- type FormFieldTime_WOP
- type FormField_WOP
- type FormGroup
- func (formgroup *FormGroup) Checkout(stage *StageStruct) *FormGroup
- func (formgroup *FormGroup) Commit(stage *StageStruct) *FormGroup
- func (formgroup *FormGroup) CommitVoid(stage *StageStruct)
- func (formgroup *FormGroup) GetName() (res string)
- func (formGroup *FormGroup) OnAfterUpdate(stage *StageStruct, stagedInstance, frontInstance *FormGroup)
- func (formgroup *FormGroup) Stage(stage *StageStruct) *FormGroup
- func (formgroup *FormGroup) Unstage(stage *StageStruct) *FormGroup
- func (formgroup *FormGroup) UnstageVoid(stage *StageStruct)
- type FormGroupName
- func (formgroupname FormGroupName) CodeValues() (res []string)
- func (formgroupname FormGroupName) Codes() (res []string)
- func (formgroupname *FormGroupName) FromCodeString(input string) (err error)
- func (formgroupname *FormGroupName) FromString(input string) (err error)
- func (formgroupname *FormGroupName) ToCodeString() (res string)
- func (formgroupname FormGroupName) ToString() (res string)
- type FormGroupOrchestrator
- type FormGroup_WOP
- type FormSortAssocButton
- func (formsortassocbutton *FormSortAssocButton) Checkout(stage *StageStruct) *FormSortAssocButton
- func (formsortassocbutton *FormSortAssocButton) Commit(stage *StageStruct) *FormSortAssocButton
- func (formsortassocbutton *FormSortAssocButton) CommitVoid(stage *StageStruct)
- func (formsortassocbutton *FormSortAssocButton) GetName() (res string)
- func (formSortAssocButton *FormSortAssocButton) OnAfterUpdate(stage *StageStruct, stagedInstance, frontInstance *FormSortAssocButton)
- func (formsortassocbutton *FormSortAssocButton) Stage(stage *StageStruct) *FormSortAssocButton
- func (formsortassocbutton *FormSortAssocButton) Unstage(stage *StageStruct) *FormSortAssocButton
- func (formsortassocbutton *FormSortAssocButton) UnstageVoid(stage *StageStruct)
- type FormSortAssocButtonInterface
- type FormSortAssocButtonOrchestrator
- type FormSortAssocButton_WOP
- type GONG__ExpressionType
- type GONG__Identifier
- type GongStructInterface
- type Gongstruct
- type GongstructEnumIntField
- type GongstructEnumStringField
- type GongstructMapString
- type GongstructSet
- type GongtructBasicField
- type InputTypeEnum
- func (inputtypeenum InputTypeEnum) CodeValues() (res []string)
- func (inputtypeenum InputTypeEnum) Codes() (res []string)
- func (inputtypeenum *InputTypeEnum) FromCodeString(input string) (err error)
- func (inputtypeenum *InputTypeEnum) FromString(input string) (err error)
- func (inputtypeenum *InputTypeEnum) ToCodeString() (res string)
- func (inputtypeenum InputTypeEnum) ToString() (res string)
- type OnAfterCreateInterface
- type OnAfterDeleteInterface
- type OnAfterReadInterface
- type OnAfterUpdateInterface
- type OnInitCommitInterface
- type OnSaveInterface
- type Option
- func (option *Option) Checkout(stage *StageStruct) *Option
- func (option *Option) Commit(stage *StageStruct) *Option
- func (option *Option) CommitVoid(stage *StageStruct)
- func (option *Option) GetName() (res string)
- func (option *Option) Stage(stage *StageStruct) *Option
- func (option *Option) Unstage(stage *StageStruct) *Option
- func (option *Option) UnstageVoid(stage *StageStruct)
- type Option_WOP
- type PointerToGongstruct
- type PointerToGongstructEnumIntField
- type PointerToGongstructEnumStringField
- type ReverseField
- type StacksNames
- func (stacksnames StacksNames) CodeValues() (res []string)
- func (stacksnames StacksNames) Codes() (res []string)
- func (stacksnames *StacksNames) FromCodeString(input string) (err error)
- func (stacksnames *StacksNames) FromString(input string) (err error)
- func (stacksnames *StacksNames) ToCodeString() (res string)
- func (stacksnames StacksNames) ToString() (res string)
- type StageStruct
- func (stage *StageStruct) Backup(dirPath string)
- func (stage *StageStruct) BackupXL(dirPath string)
- func (stage *StageStruct) Checkout()
- func (stage *StageStruct) Commit()
- func (stage *StageStruct) CommitWithSuspendedCallbacks()
- func (stage *StageStruct) ComputeReverseMaps()
- func (stage *StageStruct) GetPath() string
- func (stage *StageStruct) GetType() string
- func (stage *StageStruct) IsStagedCheckBox(checkbox *CheckBox) (ok bool)
- func (stage *StageStruct) IsStagedFormDiv(formdiv *FormDiv) (ok bool)
- func (stage *StageStruct) IsStagedFormEditAssocButton(formeditassocbutton *FormEditAssocButton) (ok bool)
- func (stage *StageStruct) IsStagedFormField(formfield *FormField) (ok bool)
- func (stage *StageStruct) IsStagedFormFieldDate(formfielddate *FormFieldDate) (ok bool)
- func (stage *StageStruct) IsStagedFormFieldDateTime(formfielddatetime *FormFieldDateTime) (ok bool)
- func (stage *StageStruct) IsStagedFormFieldFloat64(formfieldfloat64 *FormFieldFloat64) (ok bool)
- func (stage *StageStruct) IsStagedFormFieldInt(formfieldint *FormFieldInt) (ok bool)
- func (stage *StageStruct) IsStagedFormFieldSelect(formfieldselect *FormFieldSelect) (ok bool)
- func (stage *StageStruct) IsStagedFormFieldString(formfieldstring *FormFieldString) (ok bool)
- func (stage *StageStruct) IsStagedFormFieldTime(formfieldtime *FormFieldTime) (ok bool)
- func (stage *StageStruct) IsStagedFormGroup(formgroup *FormGroup) (ok bool)
- func (stage *StageStruct) IsStagedFormSortAssocButton(formsortassocbutton *FormSortAssocButton) (ok bool)
- func (stage *StageStruct) IsStagedOption(option *Option) (ok bool)
- func (stage *StageStruct) Marshall(file *os.File, modelsPackageName, packageName string)
- func (stage *StageStruct) Nil()
- func (stage *StageStruct) Reset()
- func (stage *StageStruct) Restore(dirPath string)
- func (stage *StageStruct) RestoreXL(dirPath string)
- func (stage *StageStruct) StageBranchCheckBox(checkbox *CheckBox)
- func (stage *StageStruct) StageBranchFormDiv(formdiv *FormDiv)
- func (stage *StageStruct) StageBranchFormEditAssocButton(formeditassocbutton *FormEditAssocButton)
- func (stage *StageStruct) StageBranchFormField(formfield *FormField)
- func (stage *StageStruct) StageBranchFormFieldDate(formfielddate *FormFieldDate)
- func (stage *StageStruct) StageBranchFormFieldDateTime(formfielddatetime *FormFieldDateTime)
- func (stage *StageStruct) StageBranchFormFieldFloat64(formfieldfloat64 *FormFieldFloat64)
- func (stage *StageStruct) StageBranchFormFieldInt(formfieldint *FormFieldInt)
- func (stage *StageStruct) StageBranchFormFieldSelect(formfieldselect *FormFieldSelect)
- func (stage *StageStruct) StageBranchFormFieldString(formfieldstring *FormFieldString)
- func (stage *StageStruct) StageBranchFormFieldTime(formfieldtime *FormFieldTime)
- func (stage *StageStruct) StageBranchFormGroup(formgroup *FormGroup)
- func (stage *StageStruct) StageBranchFormSortAssocButton(formsortassocbutton *FormSortAssocButton)
- func (stage *StageStruct) StageBranchOption(option *Option)
- func (stage *StageStruct) Unstage()
- func (stage *StageStruct) UnstageBranchCheckBox(checkbox *CheckBox)
- func (stage *StageStruct) UnstageBranchFormDiv(formdiv *FormDiv)
- func (stage *StageStruct) UnstageBranchFormEditAssocButton(formeditassocbutton *FormEditAssocButton)
- func (stage *StageStruct) UnstageBranchFormField(formfield *FormField)
- func (stage *StageStruct) UnstageBranchFormFieldDate(formfielddate *FormFieldDate)
- func (stage *StageStruct) UnstageBranchFormFieldDateTime(formfielddatetime *FormFieldDateTime)
- func (stage *StageStruct) UnstageBranchFormFieldFloat64(formfieldfloat64 *FormFieldFloat64)
- func (stage *StageStruct) UnstageBranchFormFieldInt(formfieldint *FormFieldInt)
- func (stage *StageStruct) UnstageBranchFormFieldSelect(formfieldselect *FormFieldSelect)
- func (stage *StageStruct) UnstageBranchFormFieldString(formfieldstring *FormFieldString)
- func (stage *StageStruct) UnstageBranchFormFieldTime(formfieldtime *FormFieldTime)
- func (stage *StageStruct) UnstageBranchFormGroup(formgroup *FormGroup)
- func (stage *StageStruct) UnstageBranchFormSortAssocButton(formsortassocbutton *FormSortAssocButton)
- func (stage *StageStruct) UnstageBranchOption(option *Option)
- type Tabulator
Constants ¶
const IdentifiersDecls = `
{{Identifier}} := (&models.{{GeneratedStructName}}{Name: ` + "`" + `{{GeneratedFieldNameValue}}` + "`" + `}).Stage(stage)`
const NumberInitStatement = `
{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
const PointerFieldInitStatement = `
{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
const SliceOfPointersFieldInitStatement = `
{{Identifier}}.{{GeneratedFieldName}} = append({{Identifier}}.{{GeneratedFieldName}}, {{GeneratedFieldNameValue}})`
const StringEnumInitStatement = `
{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
const StringInitStatement = `
{{Identifier}}.{{GeneratedFieldName}} = ` + "`" + `{{GeneratedFieldNameValue}}` + "`"
const TimeInitStatement = `` /* 129-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func AfterCreateFromFront ¶
func AfterCreateFromFront[Type Gongstruct](stage *StageStruct, instance *Type)
AfterCreateFromFront is called after a create from front
func AfterDeleteFromFront ¶
func AfterDeleteFromFront[Type Gongstruct](stage *StageStruct, staged, front *Type)
AfterDeleteFromFront is called after a delete from front
func AfterReadFromFront ¶
func AfterReadFromFront[Type Gongstruct](stage *StageStruct, instance *Type)
AfterReadFromFront is called after a Read from front
func AfterUpdateFromFront ¶
func AfterUpdateFromFront[Type Gongstruct](stage *StageStruct, old, new *Type)
AfterUpdateFromFront is called after a update from front
func CompareGongstructByName ¶
func CompareGongstructByName[T PointerToGongstruct](a, b T) int
func EvictInOtherSlices ¶
func EvictInOtherSlices[OwningType PointerToGongstruct, FieldType PointerToGongstruct]( stage *StageStruct, owningInstance OwningType, sliceField []FieldType, fieldName string)
EvictInOtherSlices allows for adherance between the gong association model and go.
Says you have a Astruct struct with a slice field "anarrayofb []*Bstruct"
go allows many Astruct instance to have the anarrayofb field that have the same pointers. go slices are MANY-MANY association.
With gong it is only ZERO-ONE-MANY associations, a Bstruct can be pointed only once by an Astruct instance through a given field. This follows the requirement that gong is suited for full stack programming and therefore the association is encoded as a reverse pointer (not as a joint table). In gong, a named struct is translated in a table and each table is a named struct.
EvictInOtherSlices removes the fields instances from other fields of other instance
Note : algo is in O(N)log(N) of nb of Astruct and Bstruct instances
func GetAssociationName ¶
func GetAssociationName[Type Gongstruct]() *Type
GetAssociationName is a generic function that returns an instance of Type where each association is filled with an instance whose name is the name of the association
This function can be handy for generating navigation function that are refactorable
func GetFieldStringValue ¶
func GetFieldStringValue[Type Gongstruct](instance Type, fieldName string) (res string)
func GetFieldStringValueFromPointer ¶
func GetFieldStringValueFromPointer[Type PointerToGongstruct](instance Type, fieldName string) (res string)
func GetFields ¶
func GetFields[Type Gongstruct]() (res []string)
GetFields return the array of the fields
func GetFieldsFromPointer ¶
func GetFieldsFromPointer[Type PointerToGongstruct]() (res []string)
GetFieldsFromPointer return the array of the fields
func GetGongstrucsSorted ¶
func GetGongstrucsSorted[T PointerToGongstruct](stage *StageStruct) (sortedSlice []T)
func GetGongstructInstancesMap ¶
func GetGongstructInstancesMap[Type Gongstruct](stage *StageStruct) *map[string]*Type
GetGongstructInstancesMap returns the map of staged GongstructType instances it is usefull because it allows refactoring of gong struct identifier
func GetGongstructInstancesSet ¶
func GetGongstructInstancesSet[Type Gongstruct](stage *StageStruct) *map[*Type]any
GetGongstructInstancesSet returns the set staged GongstructType instances it is usefull because it allows refactoring of gongstruct identifier
func GetGongstructInstancesSetFromPointerType ¶
func GetGongstructInstancesSetFromPointerType[Type PointerToGongstruct](stage *StageStruct) *map[Type]any
GetGongstructInstancesSetFromPointerType returns the set staged GongstructType instances it is usefull because it allows refactoring of gongstruct identifier
func GetGongstructName ¶
func GetGongstructName[Type Gongstruct]() (res string)
GetGongstructName returns the name of the Gongstruct this can be usefull if one want program robust to refactoring
func GetPointerReverseMap ¶
func GetPointerReverseMap[Start, End Gongstruct](fieldname string, stage *StageStruct) map[*End][]*Start
GetPointerReverseMap allows backtrack navigation of any Start.Fieldname associations (0..1) that is a pointer from one staged Gongstruct (type Start) instances to another (type End)
The function provides a map with keys as instances of End and values to arrays of *Start the map is construed by iterating over all Start instances and populationg keys with End instances and values with slice of Start instances
func GetPointerToGongstructName ¶
func GetPointerToGongstructName[Type PointerToGongstruct]() (res string)
GetPointerToGongstructName returns the name of the Gongstruct this can be usefull if one want program robust to refactoring
func GetSliceOfPointersReverseMap ¶
func GetSliceOfPointersReverseMap[Start, End Gongstruct](fieldname string, stage *StageStruct) map[*End]*Start
GetSliceOfPointersReverseMap allows backtrack navigation of any Start.Fieldname associations (0..N) between one staged Gongstruct instances and many others
The function provides a map with keys as instances of End and values to *Start instances the map is construed by iterating over all Start instances and populating keys with End instances and values with the Start instances
func GongGetMap ¶
func GongGetMap[Type GongstructMapString](stage *StageStruct) *Type
GongGetMap returns the map of staged GongstructType instances it is usefull because it allows refactoring of gong struct identifier
func GongGetSet ¶
func GongGetSet[Type GongstructSet](stage *StageStruct) *Type
GongGetSet returns the set staged GongstructType instances it is usefull because it allows refactoring of gong struct identifier
func IntToLetters ¶
func IsStaged ¶
func IsStaged[Type Gongstruct](stage *StageStruct, instance *Type) (ok bool)
func ParseAstFile ¶
func ParseAstFile(stage *StageStruct, pathToFile string) error
ParseAstFile Parse pathToFile and stages all instances declared in the file
func ParseAstFileFromAst ¶
ParseAstFile Parse pathToFile and stages all instances declared in the file
func Serialize ¶
func Serialize[Type Gongstruct](stage *StageStruct, tab Tabulator)
func SerializeExcelize ¶
func SerializeExcelize[Type Gongstruct](stage *StageStruct, f *excelize.File)
func SerializeStage ¶
func SerializeStage(stage *StageStruct, filename string)
func SetCallbackAfterCreateFromFront ¶
func SetCallbackAfterCreateFromFront[Type Gongstruct](stage *StageStruct, callback OnAfterCreateInterface[Type])
func SetCallbackAfterDeleteFromFront ¶
func SetCallbackAfterDeleteFromFront[Type Gongstruct](stage *StageStruct, callback OnAfterDeleteInterface[Type])
func SetCallbackAfterReadFromFront ¶
func SetCallbackAfterReadFromFront[Type Gongstruct](stage *StageStruct, callback OnAfterReadInterface[Type])
func SetCallbackAfterUpdateFromFront ¶
func SetCallbackAfterUpdateFromFront[Type Gongstruct](stage *StageStruct, callback OnAfterUpdateInterface[Type])
SetCallbackAfterUpdateFromFront is a function to set up callback that is robust to refactoring
func SetOrchestratorOnAfterUpdate ¶
func SetOrchestratorOnAfterUpdate[Type Gongstruct](stage *StageStruct)
func SortGongstructSetByName ¶
func SortGongstructSetByName[T PointerToGongstruct](set map[T]any) (sortedSlice []T)
func StageBranch ¶
func StageBranch[Type Gongstruct](stage *StageStruct, instance *Type)
StageBranch stages instance and apply StageBranch on all gongstruct instances that are referenced by pointers or slices of pointers of the insance
the algorithm stops along the course of graph if a vertex is already staged
func UnmarshallGongstructStaging ¶
func UnmarshallGongstructStaging(stage *StageStruct, cmap *ast.CommentMap, assignStmt *ast.AssignStmt, astCoordinate_ string) ( instance any, identifier string, gongstructName string, fieldName string)
UnmarshallGoStaging unmarshall a go assign statement
func UnstageBranch ¶
func UnstageBranch[Type Gongstruct](stage *StageStruct, instance *Type)
UnstageBranch stages instance and apply UnstageBranch on all gongstruct instances that are referenced by pointers or slices of pointers of the insance
the algorithm stops along the course of graph if a vertex is already staged
Types ¶
type AllModelsStructCreateInterface ¶
type AllModelsStructCreateInterface interface { CreateORMCheckBox(CheckBox *CheckBox) CreateORMFormDiv(FormDiv *FormDiv) CreateORMFormEditAssocButton(FormEditAssocButton *FormEditAssocButton) CreateORMFormField(FormField *FormField) CreateORMFormFieldDate(FormFieldDate *FormFieldDate) CreateORMFormFieldDateTime(FormFieldDateTime *FormFieldDateTime) CreateORMFormFieldFloat64(FormFieldFloat64 *FormFieldFloat64) CreateORMFormFieldInt(FormFieldInt *FormFieldInt) CreateORMFormFieldSelect(FormFieldSelect *FormFieldSelect) CreateORMFormFieldString(FormFieldString *FormFieldString) CreateORMFormFieldTime(FormFieldTime *FormFieldTime) CreateORMFormGroup(FormGroup *FormGroup) CreateORMFormSortAssocButton(FormSortAssocButton *FormSortAssocButton) CreateORMOption(Option *Option) }
swagger:ignore
type AllModelsStructDeleteInterface ¶
type AllModelsStructDeleteInterface interface { DeleteORMCheckBox(CheckBox *CheckBox) DeleteORMFormDiv(FormDiv *FormDiv) DeleteORMFormEditAssocButton(FormEditAssocButton *FormEditAssocButton) DeleteORMFormField(FormField *FormField) DeleteORMFormFieldDate(FormFieldDate *FormFieldDate) DeleteORMFormFieldDateTime(FormFieldDateTime *FormFieldDateTime) DeleteORMFormFieldFloat64(FormFieldFloat64 *FormFieldFloat64) DeleteORMFormFieldInt(FormFieldInt *FormFieldInt) DeleteORMFormFieldSelect(FormFieldSelect *FormFieldSelect) DeleteORMFormFieldString(FormFieldString *FormFieldString) DeleteORMFormFieldTime(FormFieldTime *FormFieldTime) DeleteORMFormGroup(FormGroup *FormGroup) DeleteORMFormSortAssocButton(FormSortAssocButton *FormSortAssocButton) DeleteORMOption(Option *Option) }
type BackRepoInterface ¶
type BackRepoInterface interface { Commit(stage *StageStruct) Checkout(stage *StageStruct) Backup(stage *StageStruct, dirPath string) Restore(stage *StageStruct, dirPath string) BackupXL(stage *StageStruct, dirPath string) RestoreXL(stage *StageStruct, dirPath string) // insertion point for Commit and Checkout signatures CommitCheckBox(checkbox *CheckBox) CheckoutCheckBox(checkbox *CheckBox) CommitFormDiv(formdiv *FormDiv) CheckoutFormDiv(formdiv *FormDiv) CommitFormEditAssocButton(formeditassocbutton *FormEditAssocButton) CheckoutFormEditAssocButton(formeditassocbutton *FormEditAssocButton) CommitFormField(formfield *FormField) CheckoutFormField(formfield *FormField) CommitFormFieldDate(formfielddate *FormFieldDate) CheckoutFormFieldDate(formfielddate *FormFieldDate) CommitFormFieldDateTime(formfielddatetime *FormFieldDateTime) CheckoutFormFieldDateTime(formfielddatetime *FormFieldDateTime) CommitFormFieldFloat64(formfieldfloat64 *FormFieldFloat64) CheckoutFormFieldFloat64(formfieldfloat64 *FormFieldFloat64) CommitFormFieldInt(formfieldint *FormFieldInt) CheckoutFormFieldInt(formfieldint *FormFieldInt) CommitFormFieldSelect(formfieldselect *FormFieldSelect) CheckoutFormFieldSelect(formfieldselect *FormFieldSelect) CommitFormFieldString(formfieldstring *FormFieldString) CheckoutFormFieldString(formfieldstring *FormFieldString) CommitFormFieldTime(formfieldtime *FormFieldTime) CheckoutFormFieldTime(formfieldtime *FormFieldTime) CommitFormGroup(formgroup *FormGroup) CheckoutFormGroup(formgroup *FormGroup) CommitFormSortAssocButton(formsortassocbutton *FormSortAssocButton) CheckoutFormSortAssocButton(formsortassocbutton *FormSortAssocButton) CommitOption(option *Option) CheckoutOption(option *Option) GetLastCommitFromBackNb() uint GetLastPushFromFrontNb() uint }
type CheckBox ¶
func (*CheckBox) Checkout ¶
func (checkbox *CheckBox) Checkout(stage *StageStruct) *CheckBox
Checkout checkbox to the back repo (if it is already staged)
func (*CheckBox) Commit ¶
func (checkbox *CheckBox) Commit(stage *StageStruct) *CheckBox
commit checkbox to the back repo (if it is already staged)
func (*CheckBox) CommitVoid ¶
func (checkbox *CheckBox) CommitVoid(stage *StageStruct)
func (*CheckBox) Stage ¶
func (checkbox *CheckBox) Stage(stage *StageStruct) *CheckBox
insertion point for cumulative sub template with model space calls Stage puts checkbox to the model stage
func (*CheckBox) Unstage ¶
func (checkbox *CheckBox) Unstage(stage *StageStruct) *CheckBox
Unstage removes checkbox off the model stage
func (*CheckBox) UnstageVoid ¶
func (checkbox *CheckBox) UnstageVoid(stage *StageStruct)
UnstageVoid removes checkbox off the model stage
type CheckBox_WOP ¶
insertion point
type ExcelizeTabulator ¶
type ExcelizeTabulator struct {
// contains filtered or unexported fields
}
func (*ExcelizeTabulator) AddCell ¶
func (tab *ExcelizeTabulator) AddCell(sheetName string, rowId, columnIndex int, value string)
func (*ExcelizeTabulator) AddRow ¶
func (tab *ExcelizeTabulator) AddRow(sheetName string) (rowId int)
func (*ExcelizeTabulator) AddSheet ¶
func (tab *ExcelizeTabulator) AddSheet(sheetName string)
func (*ExcelizeTabulator) SetExcelizeFile ¶
func (tab *ExcelizeTabulator) SetExcelizeFile(f *excelize.File)
type FormDiv ¶
type FormDiv struct { Name string FormFields []*FormField CheckBoxs []*CheckBox FormEditAssocButton *FormEditAssocButton FormSortAssocButton *FormSortAssocButton }
func (*FormDiv) Checkout ¶
func (formdiv *FormDiv) Checkout(stage *StageStruct) *FormDiv
Checkout formdiv to the back repo (if it is already staged)
func (*FormDiv) Commit ¶
func (formdiv *FormDiv) Commit(stage *StageStruct) *FormDiv
commit formdiv to the back repo (if it is already staged)
func (*FormDiv) CommitVoid ¶
func (formdiv *FormDiv) CommitVoid(stage *StageStruct)
func (*FormDiv) Stage ¶
func (formdiv *FormDiv) Stage(stage *StageStruct) *FormDiv
Stage puts formdiv to the model stage
func (*FormDiv) Unstage ¶
func (formdiv *FormDiv) Unstage(stage *StageStruct) *FormDiv
Unstage removes formdiv off the model stage
func (*FormDiv) UnstageVoid ¶
func (formdiv *FormDiv) UnstageVoid(stage *StageStruct)
UnstageVoid removes formdiv off the model stage
type FormDiv_WOP ¶
type FormDiv_WOP struct { // insertion point Name string }
type FormEditAssocButton ¶
type FormEditAssocButton struct { Name string Label string // swagger:ignore OnAssocEditon FormEditAssocButtonInterface }
FormEditAssocButton is a button on the front end to edit a 0..1-N association when submitted, it will
func (*FormEditAssocButton) Checkout ¶
func (formeditassocbutton *FormEditAssocButton) Checkout(stage *StageStruct) *FormEditAssocButton
Checkout formeditassocbutton to the back repo (if it is already staged)
func (*FormEditAssocButton) Commit ¶
func (formeditassocbutton *FormEditAssocButton) Commit(stage *StageStruct) *FormEditAssocButton
commit formeditassocbutton to the back repo (if it is already staged)
func (*FormEditAssocButton) CommitVoid ¶
func (formeditassocbutton *FormEditAssocButton) CommitVoid(stage *StageStruct)
func (*FormEditAssocButton) GetName ¶
func (formeditassocbutton *FormEditAssocButton) GetName() (res string)
for satisfaction of GongStruct interface
func (*FormEditAssocButton) OnAfterUpdate ¶
func (formEditAssocButton *FormEditAssocButton) OnAfterUpdate( stage *StageStruct, stagedInstance, frontInstance *FormEditAssocButton)
OnAfterUpdate is called when the button is pressed
func (*FormEditAssocButton) Stage ¶
func (formeditassocbutton *FormEditAssocButton) Stage(stage *StageStruct) *FormEditAssocButton
Stage puts formeditassocbutton to the model stage
func (*FormEditAssocButton) Unstage ¶
func (formeditassocbutton *FormEditAssocButton) Unstage(stage *StageStruct) *FormEditAssocButton
Unstage removes formeditassocbutton off the model stage
func (*FormEditAssocButton) UnstageVoid ¶
func (formeditassocbutton *FormEditAssocButton) UnstageVoid(stage *StageStruct)
UnstageVoid removes formeditassocbutton off the model stage
type FormEditAssocButtonInterface ¶
type FormEditAssocButtonInterface interface {
OnButtonPressed()
}
type FormEditAssocButtonOrchestrator ¶
type FormEditAssocButtonOrchestrator struct { }
insertion point FormEditAssocButtonOrchestrator
func (*FormEditAssocButtonOrchestrator) OnAfterUpdate ¶
func (orchestrator *FormEditAssocButtonOrchestrator) OnAfterUpdate( gongsvgStage *StageStruct, stagedFormEditAssocButton, backRepoFormEditAssocButton *FormEditAssocButton)
type FormEditAssocButton_WOP ¶
type FormField ¶
type FormField struct { Name string InputTypeEnum InputTypeEnum // label for the input field. // for instance "First Name" in <mat-label>First Name</mat-label> Label string // suggestion for the field Placeholder string FormFieldString *FormFieldString FormFieldFloat64 *FormFieldFloat64 FormFieldInt *FormFieldInt FormFieldDate *FormFieldDate FormFieldTime *FormFieldTime FormFieldDateTime *FormFieldDateTime FormFieldSelect *FormFieldSelect // set up specific width HasBespokeWidth bool BespokeWidthPx int }
func (*FormField) Checkout ¶
func (formfield *FormField) Checkout(stage *StageStruct) *FormField
Checkout formfield to the back repo (if it is already staged)
func (*FormField) Commit ¶
func (formfield *FormField) Commit(stage *StageStruct) *FormField
commit formfield to the back repo (if it is already staged)
func (*FormField) CommitVoid ¶
func (formfield *FormField) CommitVoid(stage *StageStruct)
func (*FormField) Stage ¶
func (formfield *FormField) Stage(stage *StageStruct) *FormField
Stage puts formfield to the model stage
func (*FormField) Unstage ¶
func (formfield *FormField) Unstage(stage *StageStruct) *FormField
Unstage removes formfield off the model stage
func (*FormField) UnstageVoid ¶
func (formfield *FormField) UnstageVoid(stage *StageStruct)
UnstageVoid removes formfield off the model stage
type FormFieldDate ¶
func (*FormFieldDate) Checkout ¶
func (formfielddate *FormFieldDate) Checkout(stage *StageStruct) *FormFieldDate
Checkout formfielddate to the back repo (if it is already staged)
func (*FormFieldDate) Commit ¶
func (formfielddate *FormFieldDate) Commit(stage *StageStruct) *FormFieldDate
commit formfielddate to the back repo (if it is already staged)
func (*FormFieldDate) CommitVoid ¶
func (formfielddate *FormFieldDate) CommitVoid(stage *StageStruct)
func (*FormFieldDate) GetName ¶
func (formfielddate *FormFieldDate) GetName() (res string)
for satisfaction of GongStruct interface
func (*FormFieldDate) Stage ¶
func (formfielddate *FormFieldDate) Stage(stage *StageStruct) *FormFieldDate
Stage puts formfielddate to the model stage
func (*FormFieldDate) Unstage ¶
func (formfielddate *FormFieldDate) Unstage(stage *StageStruct) *FormFieldDate
Unstage removes formfielddate off the model stage
func (*FormFieldDate) UnstageVoid ¶
func (formfielddate *FormFieldDate) UnstageVoid(stage *StageStruct)
UnstageVoid removes formfielddate off the model stage
type FormFieldDateTime ¶
func (*FormFieldDateTime) Checkout ¶
func (formfielddatetime *FormFieldDateTime) Checkout(stage *StageStruct) *FormFieldDateTime
Checkout formfielddatetime to the back repo (if it is already staged)
func (*FormFieldDateTime) Commit ¶
func (formfielddatetime *FormFieldDateTime) Commit(stage *StageStruct) *FormFieldDateTime
commit formfielddatetime to the back repo (if it is already staged)
func (*FormFieldDateTime) CommitVoid ¶
func (formfielddatetime *FormFieldDateTime) CommitVoid(stage *StageStruct)
func (*FormFieldDateTime) GetName ¶
func (formfielddatetime *FormFieldDateTime) GetName() (res string)
for satisfaction of GongStruct interface
func (*FormFieldDateTime) Stage ¶
func (formfielddatetime *FormFieldDateTime) Stage(stage *StageStruct) *FormFieldDateTime
Stage puts formfielddatetime to the model stage
func (*FormFieldDateTime) Unstage ¶
func (formfielddatetime *FormFieldDateTime) Unstage(stage *StageStruct) *FormFieldDateTime
Unstage removes formfielddatetime off the model stage
func (*FormFieldDateTime) UnstageVoid ¶
func (formfielddatetime *FormFieldDateTime) UnstageVoid(stage *StageStruct)
UnstageVoid removes formfielddatetime off the model stage
type FormFieldDateTime_WOP ¶
type FormFieldDate_WOP ¶
type FormFieldFloat64 ¶
type FormFieldFloat64 struct { Name string Value float64 HasMinValidator bool MinValue float64 HasMaxValidator bool MaxValue float64 }
func (*FormFieldFloat64) Checkout ¶
func (formfieldfloat64 *FormFieldFloat64) Checkout(stage *StageStruct) *FormFieldFloat64
Checkout formfieldfloat64 to the back repo (if it is already staged)
func (*FormFieldFloat64) Commit ¶
func (formfieldfloat64 *FormFieldFloat64) Commit(stage *StageStruct) *FormFieldFloat64
commit formfieldfloat64 to the back repo (if it is already staged)
func (*FormFieldFloat64) CommitVoid ¶
func (formfieldfloat64 *FormFieldFloat64) CommitVoid(stage *StageStruct)
func (*FormFieldFloat64) GetName ¶
func (formfieldfloat64 *FormFieldFloat64) GetName() (res string)
for satisfaction of GongStruct interface
func (*FormFieldFloat64) Stage ¶
func (formfieldfloat64 *FormFieldFloat64) Stage(stage *StageStruct) *FormFieldFloat64
Stage puts formfieldfloat64 to the model stage
func (*FormFieldFloat64) Unstage ¶
func (formfieldfloat64 *FormFieldFloat64) Unstage(stage *StageStruct) *FormFieldFloat64
Unstage removes formfieldfloat64 off the model stage
func (*FormFieldFloat64) UnstageVoid ¶
func (formfieldfloat64 *FormFieldFloat64) UnstageVoid(stage *StageStruct)
UnstageVoid removes formfieldfloat64 off the model stage
type FormFieldFloat64_WOP ¶
type FormFieldInt ¶
type FormFieldInt struct { Name string Value int HasMinValidator bool MinValue int HasMaxValidator bool MaxValue int }
func (*FormFieldInt) Checkout ¶
func (formfieldint *FormFieldInt) Checkout(stage *StageStruct) *FormFieldInt
Checkout formfieldint to the back repo (if it is already staged)
func (*FormFieldInt) Commit ¶
func (formfieldint *FormFieldInt) Commit(stage *StageStruct) *FormFieldInt
commit formfieldint to the back repo (if it is already staged)
func (*FormFieldInt) CommitVoid ¶
func (formfieldint *FormFieldInt) CommitVoid(stage *StageStruct)
func (*FormFieldInt) GetName ¶
func (formfieldint *FormFieldInt) GetName() (res string)
for satisfaction of GongStruct interface
func (*FormFieldInt) Stage ¶
func (formfieldint *FormFieldInt) Stage(stage *StageStruct) *FormFieldInt
Stage puts formfieldint to the model stage
func (*FormFieldInt) Unstage ¶
func (formfieldint *FormFieldInt) Unstage(stage *StageStruct) *FormFieldInt
Unstage removes formfieldint off the model stage
func (*FormFieldInt) UnstageVoid ¶
func (formfieldint *FormFieldInt) UnstageVoid(stage *StageStruct)
UnstageVoid removes formfieldint off the model stage
type FormFieldInt_WOP ¶
type FormFieldSelect ¶
func (*FormFieldSelect) Checkout ¶
func (formfieldselect *FormFieldSelect) Checkout(stage *StageStruct) *FormFieldSelect
Checkout formfieldselect to the back repo (if it is already staged)
func (*FormFieldSelect) Commit ¶
func (formfieldselect *FormFieldSelect) Commit(stage *StageStruct) *FormFieldSelect
commit formfieldselect to the back repo (if it is already staged)
func (*FormFieldSelect) CommitVoid ¶
func (formfieldselect *FormFieldSelect) CommitVoid(stage *StageStruct)
func (*FormFieldSelect) GetName ¶
func (formfieldselect *FormFieldSelect) GetName() (res string)
for satisfaction of GongStruct interface
func (*FormFieldSelect) Stage ¶
func (formfieldselect *FormFieldSelect) Stage(stage *StageStruct) *FormFieldSelect
Stage puts formfieldselect to the model stage
func (*FormFieldSelect) Unstage ¶
func (formfieldselect *FormFieldSelect) Unstage(stage *StageStruct) *FormFieldSelect
Unstage removes formfieldselect off the model stage
func (*FormFieldSelect) UnstageVoid ¶
func (formfieldselect *FormFieldSelect) UnstageVoid(stage *StageStruct)
UnstageVoid removes formfieldselect off the model stage
type FormFieldSelect_WOP ¶
type FormFieldString ¶
type FormFieldString struct { Name string Value string // IsTextArea is for telling angular whether to put a, <input ..> or a <textarea ..> which // allows for multi text editing IsTextArea bool }
func (*FormFieldString) Checkout ¶
func (formfieldstring *FormFieldString) Checkout(stage *StageStruct) *FormFieldString
Checkout formfieldstring to the back repo (if it is already staged)
func (*FormFieldString) Commit ¶
func (formfieldstring *FormFieldString) Commit(stage *StageStruct) *FormFieldString
commit formfieldstring to the back repo (if it is already staged)
func (*FormFieldString) CommitVoid ¶
func (formfieldstring *FormFieldString) CommitVoid(stage *StageStruct)
func (*FormFieldString) GetName ¶
func (formfieldstring *FormFieldString) GetName() (res string)
for satisfaction of GongStruct interface
func (*FormFieldString) Stage ¶
func (formfieldstring *FormFieldString) Stage(stage *StageStruct) *FormFieldString
Stage puts formfieldstring to the model stage
func (*FormFieldString) Unstage ¶
func (formfieldstring *FormFieldString) Unstage(stage *StageStruct) *FormFieldString
Unstage removes formfieldstring off the model stage
func (*FormFieldString) UnstageVoid ¶
func (formfieldstring *FormFieldString) UnstageVoid(stage *StageStruct)
UnstageVoid removes formfieldstring off the model stage
type FormFieldString_WOP ¶
type FormFieldTime ¶
type FormFieldTime struct { Name string // we will only update the hours, minutes, seconds, ... Value time.Time // For an <input> element with type="time", // the step attribute determines the step size between time values. Its value is specified in seconds. // When you set step="1", it means the smallest interval of time the user can select or input is one second. // This allows users to pick any time down to the second. If you omit the step attribute or set it to // a value like 60 (which corresponds to one minute), users can only pick times in one-minute intervals. // // For type="time", it determines the step between times. // If you want granularity down to milliseconds, you can set step="0.001", which is 1 millisecond Step float64 }
func (*FormFieldTime) Checkout ¶
func (formfieldtime *FormFieldTime) Checkout(stage *StageStruct) *FormFieldTime
Checkout formfieldtime to the back repo (if it is already staged)
func (*FormFieldTime) Commit ¶
func (formfieldtime *FormFieldTime) Commit(stage *StageStruct) *FormFieldTime
commit formfieldtime to the back repo (if it is already staged)
func (*FormFieldTime) CommitVoid ¶
func (formfieldtime *FormFieldTime) CommitVoid(stage *StageStruct)
func (*FormFieldTime) GetName ¶
func (formfieldtime *FormFieldTime) GetName() (res string)
for satisfaction of GongStruct interface
func (*FormFieldTime) Stage ¶
func (formfieldtime *FormFieldTime) Stage(stage *StageStruct) *FormFieldTime
Stage puts formfieldtime to the model stage
func (*FormFieldTime) Unstage ¶
func (formfieldtime *FormFieldTime) Unstage(stage *StageStruct) *FormFieldTime
Unstage removes formfieldtime off the model stage
func (*FormFieldTime) UnstageVoid ¶
func (formfieldtime *FormFieldTime) UnstageVoid(stage *StageStruct)
UnstageVoid removes formfieldtime off the model stage
type FormFieldTime_WOP ¶
type FormField_WOP ¶
type FormGroup ¶
type FormGroup struct { Name string Label string FormDivs []*FormDiv // swagger:ignore OnSave OnSaveInterface }
func (*FormGroup) Checkout ¶
func (formgroup *FormGroup) Checkout(stage *StageStruct) *FormGroup
Checkout formgroup to the back repo (if it is already staged)
func (*FormGroup) Commit ¶
func (formgroup *FormGroup) Commit(stage *StageStruct) *FormGroup
commit formgroup to the back repo (if it is already staged)
func (*FormGroup) CommitVoid ¶
func (formgroup *FormGroup) CommitVoid(stage *StageStruct)
func (*FormGroup) OnAfterUpdate ¶
func (formGroup *FormGroup) OnAfterUpdate( stage *StageStruct, stagedInstance, frontInstance *FormGroup)
OnAfterUpdate is called when the form group is updated
func (*FormGroup) Stage ¶
func (formgroup *FormGroup) Stage(stage *StageStruct) *FormGroup
Stage puts formgroup to the model stage
func (*FormGroup) Unstage ¶
func (formgroup *FormGroup) Unstage(stage *StageStruct) *FormGroup
Unstage removes formgroup off the model stage
func (*FormGroup) UnstageVoid ¶
func (formgroup *FormGroup) UnstageVoid(stage *StageStruct)
UnstageVoid removes formgroup off the model stage
type FormGroupName ¶
type FormGroupName string
FormGroupName - Authorized name for form group
const (
FormGroupDefaultName FormGroupName = "Form"
)
values for FormGroupName
func (FormGroupName) CodeValues ¶
func (formgroupname FormGroupName) CodeValues() (res []string)
func (FormGroupName) Codes ¶
func (formgroupname FormGroupName) Codes() (res []string)
func (*FormGroupName) FromCodeString ¶
func (formgroupname *FormGroupName) FromCodeString(input string) (err error)
func (*FormGroupName) FromString ¶
func (formgroupname *FormGroupName) FromString(input string) (err error)
func (*FormGroupName) ToCodeString ¶
func (formgroupname *FormGroupName) ToCodeString() (res string)
func (FormGroupName) ToString ¶
func (formgroupname FormGroupName) ToString() (res string)
insertion point of enum utility functions Utility function for FormGroupName if enum values are string, it is stored with the value if enum values are int, they are stored with the code of the value
type FormGroupOrchestrator ¶
type FormGroupOrchestrator struct { }
FormGroupOrchestrator
func (*FormGroupOrchestrator) OnAfterUpdate ¶
func (orchestrator *FormGroupOrchestrator) OnAfterUpdate( gongsvgStage *StageStruct, stagedFormGroup, backRepoFormGroup *FormGroup)
type FormGroup_WOP ¶
type FormSortAssocButton ¶
type FormSortAssocButton struct { Name string Label string // swagger:ignore OnSortEdition FormSortAssocButtonInterface }
FormSortAssocButton is a button on the front end to sort a 0..1-N association when submitted, it will update the data
func (*FormSortAssocButton) Checkout ¶
func (formsortassocbutton *FormSortAssocButton) Checkout(stage *StageStruct) *FormSortAssocButton
Checkout formsortassocbutton to the back repo (if it is already staged)
func (*FormSortAssocButton) Commit ¶
func (formsortassocbutton *FormSortAssocButton) Commit(stage *StageStruct) *FormSortAssocButton
commit formsortassocbutton to the back repo (if it is already staged)
func (*FormSortAssocButton) CommitVoid ¶
func (formsortassocbutton *FormSortAssocButton) CommitVoid(stage *StageStruct)
func (*FormSortAssocButton) GetName ¶
func (formsortassocbutton *FormSortAssocButton) GetName() (res string)
for satisfaction of GongStruct interface
func (*FormSortAssocButton) OnAfterUpdate ¶
func (formSortAssocButton *FormSortAssocButton) OnAfterUpdate( stage *StageStruct, stagedInstance, frontInstance *FormSortAssocButton)
OnAfterUpdate is called when the button is pressed
func (*FormSortAssocButton) Stage ¶
func (formsortassocbutton *FormSortAssocButton) Stage(stage *StageStruct) *FormSortAssocButton
Stage puts formsortassocbutton to the model stage
func (*FormSortAssocButton) Unstage ¶
func (formsortassocbutton *FormSortAssocButton) Unstage(stage *StageStruct) *FormSortAssocButton
Unstage removes formsortassocbutton off the model stage
func (*FormSortAssocButton) UnstageVoid ¶
func (formsortassocbutton *FormSortAssocButton) UnstageVoid(stage *StageStruct)
UnstageVoid removes formsortassocbutton off the model stage
type FormSortAssocButtonInterface ¶
type FormSortAssocButtonInterface interface {
OnButtonPressed()
}
type FormSortAssocButtonOrchestrator ¶
type FormSortAssocButtonOrchestrator struct { }
FormSortAssocButtonOrchestrator
func (*FormSortAssocButtonOrchestrator) OnAfterUpdate ¶
func (orchestrator *FormSortAssocButtonOrchestrator) OnAfterUpdate( gongsvgStage *StageStruct, stagedFormSortAssocButton, backRepoFormSortAssocButton *FormSortAssocButton)
type FormSortAssocButton_WOP ¶
type GONG__ExpressionType ¶
type GONG__ExpressionType string
swagger:ignore
const ( GONG__STRUCT_INSTANCE GONG__ExpressionType = "STRUCT_INSTANCE" GONG__FIELD_OR_CONST_VALUE GONG__ExpressionType = "FIELD_OR_CONST_VALUE" GONG__FIELD_VALUE GONG__ExpressionType = "FIELD_VALUE" GONG__ENUM_CAST_INT GONG__ExpressionType = "ENUM_CAST_INT" GONG__ENUM_CAST_STRING GONG__ExpressionType = "ENUM_CAST_STRING" GONG__IDENTIFIER_CONST GONG__ExpressionType = "IDENTIFIER_CONST" )
type GONG__Identifier ¶
type GONG__Identifier struct { Ident string Type GONG__ExpressionType }
type GongStructInterface ¶
type GongStructInterface interface {
GetName() (res string)
}
GongStructInterface is the interface met by GongStructs It allows runtime reflexion of instances (without the hassle of the "reflect" package)
type Gongstruct ¶
type Gongstruct interface { // insertion point for generic types CheckBox | FormDiv | FormEditAssocButton | FormField | FormFieldDate | FormFieldDateTime | FormFieldFloat64 | FormFieldInt | FormFieldSelect | FormFieldString | FormFieldTime | FormGroup | FormSortAssocButton | Option }
Gongstruct is the type parameter for generated generic function that allows - access to staged instances - navigation between staged instances by going backward association links between gongstruct - full refactoring of Gongstruct identifiers / fields
type GongstructEnumIntField ¶
type GongstructEnumStringField ¶
type GongstructEnumStringField interface { string | FormGroupName | InputTypeEnum | StacksNames Codes() []string CodeValues() []string }
type GongstructMapString ¶
type GongstructMapString interface { map[any]any | map[string]*CheckBox | map[string]*FormDiv | map[string]*FormEditAssocButton | map[string]*FormField | map[string]*FormFieldDate | map[string]*FormFieldDateTime | map[string]*FormFieldFloat64 | map[string]*FormFieldInt | map[string]*FormFieldSelect | map[string]*FormFieldString | map[string]*FormFieldTime | map[string]*FormGroup | map[string]*FormSortAssocButton | map[string]*Option | map[*any]any // because go does not support an extra "|" at the end of type specifications }
type GongstructSet ¶
type GongstructSet interface { map[any]any | map[*CheckBox]any | map[*FormDiv]any | map[*FormEditAssocButton]any | map[*FormField]any | map[*FormFieldDate]any | map[*FormFieldDateTime]any | map[*FormFieldFloat64]any | map[*FormFieldInt]any | map[*FormFieldSelect]any | map[*FormFieldString]any | map[*FormFieldTime]any | map[*FormGroup]any | map[*FormSortAssocButton]any | map[*Option]any | map[*any]any // because go does not support an extra "|" at the end of type specifications }
type GongtructBasicField ¶
type InputTypeEnum ¶
type InputTypeEnum string
InputTypeEnum - enumeration of possible 'type' values for an HTML <input> element swagger:enum InputTypeEnum
const ( Text InputTypeEnum = "text" Password InputTypeEnum = "password" Number InputTypeEnum = "number" Email InputTypeEnum = "email" Tel InputTypeEnum = "tel" Date InputTypeEnum = "date" Datetime InputTypeEnum = "datetime-local" Time InputTypeEnum = "time" URL InputTypeEnum = "url" Search InputTypeEnum = "search" Range InputTypeEnum = "range" Color InputTypeEnum = "color" File InputTypeEnum = "file" Hidden InputTypeEnum = "hidden" Month InputTypeEnum = "month" Week InputTypeEnum = "week" )
values for InputTypeEnum
func (InputTypeEnum) CodeValues ¶
func (inputtypeenum InputTypeEnum) CodeValues() (res []string)
func (InputTypeEnum) Codes ¶
func (inputtypeenum InputTypeEnum) Codes() (res []string)
func (*InputTypeEnum) FromCodeString ¶
func (inputtypeenum *InputTypeEnum) FromCodeString(input string) (err error)
func (*InputTypeEnum) FromString ¶
func (inputtypeenum *InputTypeEnum) FromString(input string) (err error)
func (*InputTypeEnum) ToCodeString ¶
func (inputtypeenum *InputTypeEnum) ToCodeString() (res string)
func (InputTypeEnum) ToString ¶
func (inputtypeenum InputTypeEnum) ToString() (res string)
Utility function for InputTypeEnum if enum values are string, it is stored with the value if enum values are int, they are stored with the code of the value
type OnAfterCreateInterface ¶
type OnAfterCreateInterface[Type Gongstruct] interface { OnAfterCreate(stage *StageStruct, instance *Type) }
OnAfterCreateInterface callback when an instance is updated from the front
type OnAfterDeleteInterface ¶
type OnAfterDeleteInterface[Type Gongstruct] interface { OnAfterDelete(stage *StageStruct, staged, front *Type) }
OnAfterDeleteInterface callback when an instance is updated from the front
type OnAfterReadInterface ¶
type OnAfterReadInterface[Type Gongstruct] interface { OnAfterRead(stage *StageStruct, instance *Type) }
OnAfterReadInterface callback when an instance is updated from the front
type OnAfterUpdateInterface ¶
type OnAfterUpdateInterface[Type Gongstruct] interface { OnAfterUpdate(stage *StageStruct, old, new *Type) }
OnAfterUpdateInterface callback when an instance is updated from the front
type OnInitCommitInterface ¶
type OnInitCommitInterface interface {
BeforeCommit(stage *StageStruct)
}
type OnSaveInterface ¶
type OnSaveInterface interface {
OnSave()
}
type Option ¶
type Option struct {
Name string
}
func (*Option) Checkout ¶
func (option *Option) Checkout(stage *StageStruct) *Option
Checkout option to the back repo (if it is already staged)
func (*Option) Commit ¶
func (option *Option) Commit(stage *StageStruct) *Option
commit option to the back repo (if it is already staged)
func (*Option) CommitVoid ¶
func (option *Option) CommitVoid(stage *StageStruct)
func (*Option) Stage ¶
func (option *Option) Stage(stage *StageStruct) *Option
Stage puts option to the model stage
func (*Option) Unstage ¶
func (option *Option) Unstage(stage *StageStruct) *Option
Unstage removes option off the model stage
func (*Option) UnstageVoid ¶
func (option *Option) UnstageVoid(stage *StageStruct)
UnstageVoid removes option off the model stage
type Option_WOP ¶
type Option_WOP struct { // insertion point Name string }
type PointerToGongstruct ¶
type PointerToGongstruct interface { *CheckBox | *FormDiv | *FormEditAssocButton | *FormField | *FormFieldDate | *FormFieldDateTime | *FormFieldFloat64 | *FormFieldInt | *FormFieldSelect | *FormFieldString | *FormFieldTime | *FormGroup | *FormSortAssocButton | *Option GetName() string CommitVoid(*StageStruct) UnstageVoid(stage *StageStruct) }
Gongstruct is the type parameter for generated generic function that allows - access to staged instances - navigation between staged instances by going backward association links between gongstruct - full refactoring of Gongstruct identifiers / fields
type PointerToGongstructEnumStringField ¶
type PointerToGongstructEnumStringField interface { *FormGroupName | *InputTypeEnum | *StacksNames FromCodeString(input string) (err error) }
type ReverseField ¶
func GetReverseFields ¶
func GetReverseFields[Type Gongstruct]() (res []ReverseField)
type StacksNames ¶
type StacksNames string
const (
GongformStackName StacksNames = "gongform"
)
func (StacksNames) CodeValues ¶
func (stacksnames StacksNames) CodeValues() (res []string)
func (StacksNames) Codes ¶
func (stacksnames StacksNames) Codes() (res []string)
func (*StacksNames) FromCodeString ¶
func (stacksnames *StacksNames) FromCodeString(input string) (err error)
func (*StacksNames) FromString ¶
func (stacksnames *StacksNames) FromString(input string) (err error)
func (*StacksNames) ToCodeString ¶
func (stacksnames *StacksNames) ToCodeString() (res string)
func (StacksNames) ToString ¶
func (stacksnames StacksNames) ToString() (res string)
Utility function for StacksNames if enum values are string, it is stored with the value if enum values are int, they are stored with the code of the value
type StageStruct ¶
type StageStruct struct { // insertion point for definition of arrays registering instances CheckBoxs map[*CheckBox]any CheckBoxs_mapString map[string]*CheckBox OnAfterCheckBoxCreateCallback OnAfterCreateInterface[CheckBox] OnAfterCheckBoxUpdateCallback OnAfterUpdateInterface[CheckBox] OnAfterCheckBoxDeleteCallback OnAfterDeleteInterface[CheckBox] OnAfterCheckBoxReadCallback OnAfterReadInterface[CheckBox] FormDivs map[*FormDiv]any FormDivs_mapString map[string]*FormDiv // insertion point for slice of pointers maps FormDiv_FormFields_reverseMap map[*FormField]*FormDiv FormDiv_CheckBoxs_reverseMap map[*CheckBox]*FormDiv OnAfterFormDivCreateCallback OnAfterCreateInterface[FormDiv] OnAfterFormDivUpdateCallback OnAfterUpdateInterface[FormDiv] OnAfterFormDivDeleteCallback OnAfterDeleteInterface[FormDiv] OnAfterFormDivReadCallback OnAfterReadInterface[FormDiv] FormEditAssocButtons map[*FormEditAssocButton]any FormEditAssocButtons_mapString map[string]*FormEditAssocButton OnAfterFormEditAssocButtonCreateCallback OnAfterCreateInterface[FormEditAssocButton] OnAfterFormEditAssocButtonUpdateCallback OnAfterUpdateInterface[FormEditAssocButton] OnAfterFormEditAssocButtonDeleteCallback OnAfterDeleteInterface[FormEditAssocButton] OnAfterFormEditAssocButtonReadCallback OnAfterReadInterface[FormEditAssocButton] FormFields map[*FormField]any FormFields_mapString map[string]*FormField OnAfterFormFieldCreateCallback OnAfterCreateInterface[FormField] OnAfterFormFieldUpdateCallback OnAfterUpdateInterface[FormField] OnAfterFormFieldDeleteCallback OnAfterDeleteInterface[FormField] OnAfterFormFieldReadCallback OnAfterReadInterface[FormField] FormFieldDates map[*FormFieldDate]any FormFieldDates_mapString map[string]*FormFieldDate OnAfterFormFieldDateCreateCallback OnAfterCreateInterface[FormFieldDate] OnAfterFormFieldDateUpdateCallback OnAfterUpdateInterface[FormFieldDate] OnAfterFormFieldDateDeleteCallback OnAfterDeleteInterface[FormFieldDate] OnAfterFormFieldDateReadCallback OnAfterReadInterface[FormFieldDate] FormFieldDateTimes map[*FormFieldDateTime]any FormFieldDateTimes_mapString map[string]*FormFieldDateTime OnAfterFormFieldDateTimeCreateCallback OnAfterCreateInterface[FormFieldDateTime] OnAfterFormFieldDateTimeUpdateCallback OnAfterUpdateInterface[FormFieldDateTime] OnAfterFormFieldDateTimeDeleteCallback OnAfterDeleteInterface[FormFieldDateTime] OnAfterFormFieldDateTimeReadCallback OnAfterReadInterface[FormFieldDateTime] FormFieldFloat64s map[*FormFieldFloat64]any FormFieldFloat64s_mapString map[string]*FormFieldFloat64 OnAfterFormFieldFloat64CreateCallback OnAfterCreateInterface[FormFieldFloat64] OnAfterFormFieldFloat64UpdateCallback OnAfterUpdateInterface[FormFieldFloat64] OnAfterFormFieldFloat64DeleteCallback OnAfterDeleteInterface[FormFieldFloat64] OnAfterFormFieldFloat64ReadCallback OnAfterReadInterface[FormFieldFloat64] FormFieldInts map[*FormFieldInt]any FormFieldInts_mapString map[string]*FormFieldInt OnAfterFormFieldIntCreateCallback OnAfterCreateInterface[FormFieldInt] OnAfterFormFieldIntUpdateCallback OnAfterUpdateInterface[FormFieldInt] OnAfterFormFieldIntDeleteCallback OnAfterDeleteInterface[FormFieldInt] OnAfterFormFieldIntReadCallback OnAfterReadInterface[FormFieldInt] FormFieldSelects map[*FormFieldSelect]any FormFieldSelects_mapString map[string]*FormFieldSelect // insertion point for slice of pointers maps FormFieldSelect_Options_reverseMap map[*Option]*FormFieldSelect OnAfterFormFieldSelectCreateCallback OnAfterCreateInterface[FormFieldSelect] OnAfterFormFieldSelectUpdateCallback OnAfterUpdateInterface[FormFieldSelect] OnAfterFormFieldSelectDeleteCallback OnAfterDeleteInterface[FormFieldSelect] OnAfterFormFieldSelectReadCallback OnAfterReadInterface[FormFieldSelect] FormFieldStrings map[*FormFieldString]any FormFieldStrings_mapString map[string]*FormFieldString OnAfterFormFieldStringCreateCallback OnAfterCreateInterface[FormFieldString] OnAfterFormFieldStringUpdateCallback OnAfterUpdateInterface[FormFieldString] OnAfterFormFieldStringDeleteCallback OnAfterDeleteInterface[FormFieldString] OnAfterFormFieldStringReadCallback OnAfterReadInterface[FormFieldString] FormFieldTimes map[*FormFieldTime]any FormFieldTimes_mapString map[string]*FormFieldTime OnAfterFormFieldTimeCreateCallback OnAfterCreateInterface[FormFieldTime] OnAfterFormFieldTimeUpdateCallback OnAfterUpdateInterface[FormFieldTime] OnAfterFormFieldTimeDeleteCallback OnAfterDeleteInterface[FormFieldTime] OnAfterFormFieldTimeReadCallback OnAfterReadInterface[FormFieldTime] FormGroups map[*FormGroup]any FormGroups_mapString map[string]*FormGroup // insertion point for slice of pointers maps FormGroup_FormDivs_reverseMap map[*FormDiv]*FormGroup OnAfterFormGroupCreateCallback OnAfterCreateInterface[FormGroup] OnAfterFormGroupUpdateCallback OnAfterUpdateInterface[FormGroup] OnAfterFormGroupDeleteCallback OnAfterDeleteInterface[FormGroup] OnAfterFormGroupReadCallback OnAfterReadInterface[FormGroup] FormSortAssocButtons map[*FormSortAssocButton]any FormSortAssocButtons_mapString map[string]*FormSortAssocButton OnAfterFormSortAssocButtonCreateCallback OnAfterCreateInterface[FormSortAssocButton] OnAfterFormSortAssocButtonUpdateCallback OnAfterUpdateInterface[FormSortAssocButton] OnAfterFormSortAssocButtonDeleteCallback OnAfterDeleteInterface[FormSortAssocButton] OnAfterFormSortAssocButtonReadCallback OnAfterReadInterface[FormSortAssocButton] Options map[*Option]any Options_mapString map[string]*Option OnAfterOptionCreateCallback OnAfterCreateInterface[Option] OnAfterOptionUpdateCallback OnAfterUpdateInterface[Option] OnAfterOptionDeleteCallback OnAfterDeleteInterface[Option] OnAfterOptionReadCallback OnAfterReadInterface[Option] AllModelsStructCreateCallback AllModelsStructCreateInterface AllModelsStructDeleteCallback AllModelsStructDeleteInterface BackRepo BackRepoInterface // if set will be called before each commit to the back repo OnInitCommitCallback OnInitCommitInterface OnInitCommitFromFrontCallback OnInitCommitInterface OnInitCommitFromBackCallback OnInitCommitInterface // store the number of instance per gongstruct Map_GongStructName_InstancesNb map[string]int // store meta package import MetaPackageImportPath string MetaPackageImportAlias string // to be removed after fix of [issue](https://github.com/golang/go/issues/57559) // map to enable docLink renaming when an identifier is renamed Map_DocLink_Renaming map[string]GONG__Identifier // contains filtered or unexported fields }
StageStruct enables storage of staged instances swagger:ignore
func NewStage ¶
func NewStage(path string) (stage *StageStruct)
func (*StageStruct) Backup ¶
func (stage *StageStruct) Backup(dirPath string)
backup generates backup files in the dirPath
func (*StageStruct) BackupXL ¶
func (stage *StageStruct) BackupXL(dirPath string)
backup generates backup files in the dirPath
func (*StageStruct) Checkout ¶
func (stage *StageStruct) Checkout()
func (*StageStruct) Commit ¶
func (stage *StageStruct) Commit()
func (*StageStruct) CommitWithSuspendedCallbacks ¶
func (stage *StageStruct) CommitWithSuspendedCallbacks()
func (*StageStruct) ComputeReverseMaps ¶
func (stage *StageStruct) ComputeReverseMaps()
ComputeReverseMaps computes the reverse map, for all intances, for all slice to pointers field Its complexity is in O(n)O(p) where p is the number of pointers
func (*StageStruct) GetPath ¶
func (stage *StageStruct) GetPath() string
func (*StageStruct) GetType ¶
func (stage *StageStruct) GetType() string
func (*StageStruct) IsStagedCheckBox ¶
func (stage *StageStruct) IsStagedCheckBox(checkbox *CheckBox) (ok bool)
insertion point for stage per struct
func (*StageStruct) IsStagedFormDiv ¶
func (stage *StageStruct) IsStagedFormDiv(formdiv *FormDiv) (ok bool)
func (*StageStruct) IsStagedFormEditAssocButton ¶
func (stage *StageStruct) IsStagedFormEditAssocButton(formeditassocbutton *FormEditAssocButton) (ok bool)
func (*StageStruct) IsStagedFormField ¶
func (stage *StageStruct) IsStagedFormField(formfield *FormField) (ok bool)
func (*StageStruct) IsStagedFormFieldDate ¶
func (stage *StageStruct) IsStagedFormFieldDate(formfielddate *FormFieldDate) (ok bool)
func (*StageStruct) IsStagedFormFieldDateTime ¶
func (stage *StageStruct) IsStagedFormFieldDateTime(formfielddatetime *FormFieldDateTime) (ok bool)
func (*StageStruct) IsStagedFormFieldFloat64 ¶
func (stage *StageStruct) IsStagedFormFieldFloat64(formfieldfloat64 *FormFieldFloat64) (ok bool)
func (*StageStruct) IsStagedFormFieldInt ¶
func (stage *StageStruct) IsStagedFormFieldInt(formfieldint *FormFieldInt) (ok bool)
func (*StageStruct) IsStagedFormFieldSelect ¶
func (stage *StageStruct) IsStagedFormFieldSelect(formfieldselect *FormFieldSelect) (ok bool)
func (*StageStruct) IsStagedFormFieldString ¶
func (stage *StageStruct) IsStagedFormFieldString(formfieldstring *FormFieldString) (ok bool)
func (*StageStruct) IsStagedFormFieldTime ¶
func (stage *StageStruct) IsStagedFormFieldTime(formfieldtime *FormFieldTime) (ok bool)
func (*StageStruct) IsStagedFormGroup ¶
func (stage *StageStruct) IsStagedFormGroup(formgroup *FormGroup) (ok bool)
func (*StageStruct) IsStagedFormSortAssocButton ¶
func (stage *StageStruct) IsStagedFormSortAssocButton(formsortassocbutton *FormSortAssocButton) (ok bool)
func (*StageStruct) IsStagedOption ¶
func (stage *StageStruct) IsStagedOption(option *Option) (ok bool)
func (*StageStruct) Marshall ¶
func (stage *StageStruct) Marshall(file *os.File, modelsPackageName, packageName string)
Marshall marshall the stage content into the file as an instanciation into a stage
func (*StageStruct) Nil ¶
func (stage *StageStruct) Nil()
func (*StageStruct) Reset ¶
func (stage *StageStruct) Reset()
func (*StageStruct) Restore ¶
func (stage *StageStruct) Restore(dirPath string)
Restore resets Stage & BackRepo and restores their content from the restore files in dirPath
func (*StageStruct) RestoreXL ¶
func (stage *StageStruct) RestoreXL(dirPath string)
Restore resets Stage & BackRepo and restores their content from the restore files in dirPath
func (*StageStruct) StageBranchCheckBox ¶
func (stage *StageStruct) StageBranchCheckBox(checkbox *CheckBox)
insertion point for stage branch per struct
func (*StageStruct) StageBranchFormDiv ¶
func (stage *StageStruct) StageBranchFormDiv(formdiv *FormDiv)
func (*StageStruct) StageBranchFormEditAssocButton ¶
func (stage *StageStruct) StageBranchFormEditAssocButton(formeditassocbutton *FormEditAssocButton)
func (*StageStruct) StageBranchFormField ¶
func (stage *StageStruct) StageBranchFormField(formfield *FormField)
func (*StageStruct) StageBranchFormFieldDate ¶
func (stage *StageStruct) StageBranchFormFieldDate(formfielddate *FormFieldDate)
func (*StageStruct) StageBranchFormFieldDateTime ¶
func (stage *StageStruct) StageBranchFormFieldDateTime(formfielddatetime *FormFieldDateTime)
func (*StageStruct) StageBranchFormFieldFloat64 ¶
func (stage *StageStruct) StageBranchFormFieldFloat64(formfieldfloat64 *FormFieldFloat64)
func (*StageStruct) StageBranchFormFieldInt ¶
func (stage *StageStruct) StageBranchFormFieldInt(formfieldint *FormFieldInt)
func (*StageStruct) StageBranchFormFieldSelect ¶
func (stage *StageStruct) StageBranchFormFieldSelect(formfieldselect *FormFieldSelect)
func (*StageStruct) StageBranchFormFieldString ¶
func (stage *StageStruct) StageBranchFormFieldString(formfieldstring *FormFieldString)
func (*StageStruct) StageBranchFormFieldTime ¶
func (stage *StageStruct) StageBranchFormFieldTime(formfieldtime *FormFieldTime)
func (*StageStruct) StageBranchFormGroup ¶
func (stage *StageStruct) StageBranchFormGroup(formgroup *FormGroup)
func (*StageStruct) StageBranchFormSortAssocButton ¶
func (stage *StageStruct) StageBranchFormSortAssocButton(formsortassocbutton *FormSortAssocButton)
func (*StageStruct) StageBranchOption ¶
func (stage *StageStruct) StageBranchOption(option *Option)
func (*StageStruct) Unstage ¶
func (stage *StageStruct) Unstage()
func (*StageStruct) UnstageBranchCheckBox ¶
func (stage *StageStruct) UnstageBranchCheckBox(checkbox *CheckBox)
insertion point for unstage branch per struct
func (*StageStruct) UnstageBranchFormDiv ¶
func (stage *StageStruct) UnstageBranchFormDiv(formdiv *FormDiv)
func (*StageStruct) UnstageBranchFormEditAssocButton ¶
func (stage *StageStruct) UnstageBranchFormEditAssocButton(formeditassocbutton *FormEditAssocButton)
func (*StageStruct) UnstageBranchFormField ¶
func (stage *StageStruct) UnstageBranchFormField(formfield *FormField)
func (*StageStruct) UnstageBranchFormFieldDate ¶
func (stage *StageStruct) UnstageBranchFormFieldDate(formfielddate *FormFieldDate)
func (*StageStruct) UnstageBranchFormFieldDateTime ¶
func (stage *StageStruct) UnstageBranchFormFieldDateTime(formfielddatetime *FormFieldDateTime)
func (*StageStruct) UnstageBranchFormFieldFloat64 ¶
func (stage *StageStruct) UnstageBranchFormFieldFloat64(formfieldfloat64 *FormFieldFloat64)
func (*StageStruct) UnstageBranchFormFieldInt ¶
func (stage *StageStruct) UnstageBranchFormFieldInt(formfieldint *FormFieldInt)
func (*StageStruct) UnstageBranchFormFieldSelect ¶
func (stage *StageStruct) UnstageBranchFormFieldSelect(formfieldselect *FormFieldSelect)
func (*StageStruct) UnstageBranchFormFieldString ¶
func (stage *StageStruct) UnstageBranchFormFieldString(formfieldstring *FormFieldString)
func (*StageStruct) UnstageBranchFormFieldTime ¶
func (stage *StageStruct) UnstageBranchFormFieldTime(formfieldtime *FormFieldTime)
func (*StageStruct) UnstageBranchFormGroup ¶
func (stage *StageStruct) UnstageBranchFormGroup(formgroup *FormGroup)
func (*StageStruct) UnstageBranchFormSortAssocButton ¶
func (stage *StageStruct) UnstageBranchFormSortAssocButton(formsortassocbutton *FormSortAssocButton)
func (*StageStruct) UnstageBranchOption ¶
func (stage *StageStruct) UnstageBranchOption(option *Option)
Source Files
¶
- docs.go
- form_div.go
- form_edit_assoc_button.go
- form_field.go
- form_field_boolean.go
- form_field_date.go
- form_field_date_time.go
- form_field_float64.go
- form_field_int.go
- form_field_select.go
- form_field_string.go
- form_field_time.go
- form_group.go
- form_group_name.go
- form_sort_assoc_button.go
- gong.go
- gong_ast.go
- gong_callbacks.go
- gong_enum.go
- gong_graph.go
- gong_marshall.go
- gong_orchestrator.go
- gong_serialize.go
- gong_slices.go
- gong_wop.go
- input_type_enum.go
- option.go
- stack_names_enum.go