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
generated code - do not edit
generated code - do not edit
Index ¶
- Constants
- func AfterCreateFromFront[Type Gongstruct](stage *Stage, instance *Type)
- func AfterDeleteFromFront[Type Gongstruct](stage *Stage, staged, front *Type)
- func AfterReadFromFront[Type Gongstruct](stage *Stage, instance *Type)
- func AfterUpdateFromFront[Type Gongstruct](stage *Stage, old, new *Type)
- func ApplyDiff(b, c string) (string, error)
- func CompareGongstructByName[T PointerToGongstruct](a, b T) int
- func ComputeDiff(a, b string) string
- func CopyBranch[Type Gongstruct](from *Type) (to *Type)
- func GetAssociationName[Type Gongstruct]() *Type
- func GetFields[Type Gongstruct]() (res []string)
- func GetFieldsFromPointer[Type PointerToGongstruct]() (res []string)
- func GetGongstrucsSorted[T PointerToGongstruct](stage *Stage) (sortedSlice []T)
- func GetGongstructInstancesMap[Type Gongstruct](stage *Stage) *map[string]*Type
- func GetGongstructInstancesSet[Type Gongstruct](stage *Stage) *map[*Type]any
- func GetGongstructInstancesSetFromPointerType[Type PointerToGongstruct](stage *Stage) *map[Type]any
- func GetGongstructName[Type Gongstruct]() (res string)
- func GetNamedStructInstances[T PointerToGongstruct](set map[T]any, order map[T]uint) (res []string)
- func GetOrder[Type Gongstruct](stage *Stage, instance *Type) uint
- func GetOrderPointerGongstruct[Type PointerToGongstruct](stage *Stage, instance Type) uint
- func GetPointerReverseMap[Start, End Gongstruct](fieldname string, stage *Stage) map[*End][]*Start
- func GetPointerToGongstructName[Type PointerToGongstruct]() (res string)
- func GetReverseFieldOwner[T Gongstruct](stage *Stage, instance *T, reverseField *ReverseField) (res any)
- func GetReverseFieldOwnerName(stage *Stage, instance any, reverseField *ReverseField) (res string)
- func GetSliceOfPointersReverseMap[Start, End Gongstruct](fieldname string, stage *Stage) map[*End][]*Start
- func GetStructInstancesByOrder[T PointerToGongstruct](set map[T]any, order map[T]uint) (res []T)
- func GongGetMap[Type GongstructMapString](stage *Stage) *Type
- func GongGetSet[Type GongstructSet](stage *Stage) *Type
- func IntToLetters(number int32) (letters string)
- func IsStaged[Type Gongstruct](stage *Stage, instance *Type) (ok bool)
- func ParseAstEmbeddedFile(stage *Stage, directory embed.FS, pathToFile string) error
- func ParseAstFile(stage *Stage, pathToFile string) error
- func ParseAstFileFromAst(stage *Stage, inFile *ast.File, fset *token.FileSet) error
- func ReplaceOldDeclarationsInFile(pathToFile string) error
- func Serialize[Type Gongstruct](stage *Stage, tab Tabulator)
- func SerializeExcelize[Type Gongstruct](stage *Stage, f *excelize.File)
- func SerializeExcelizePointerToGongstruct[Type PointerToGongstruct](stage *Stage, f *excelize.File)
- func SerializeStage(stage *Stage, filename string)
- func SetCallbackAfterCreateFromFront[Type Gongstruct](stage *Stage, callback OnAfterCreateInterface[Type])
- func SetCallbackAfterDeleteFromFront[Type Gongstruct](stage *Stage, callback OnAfterDeleteInterface[Type])
- func SetCallbackAfterReadFromFront[Type Gongstruct](stage *Stage, callback OnAfterReadInterface[Type])
- func SetCallbackAfterUpdateFromFront[Type Gongstruct](stage *Stage, callback OnAfterUpdateInterface[Type])
- func SetOrchestratorOnAfterUpdate[Type Gongstruct](stage *Stage)
- func SortGongstructSetByName[T PointerToGongstruct](set map[T]any) (sortedSlice []T)
- func StageBranch[Type Gongstruct](stage *Stage, instance *Type)
- func UnmarshallGongstructStaging(stage *Stage, cmap *ast.CommentMap, assignStmt *ast.AssignStmt, ...) (instance any, identifier string, gongstructName string, fieldName string)
- func UnstageBranch[Type Gongstruct](stage *Stage, instance *Type)
- type AllModelsStructCreateInterface
- type AllModelsStructDeleteInterface
- type AsSplit
- func (assplit *AsSplit) Checkout(stage *Stage) *AsSplit
- func (assplit *AsSplit) Commit(stage *Stage) *AsSplit
- func (assplit *AsSplit) CommitVoid(stage *Stage)
- func (from *AsSplit) CopyBasicFields(to *AsSplit)
- func (assplit *AsSplit) GetName() (res string)
- func (assplit *AsSplit) Stage(stage *Stage) *AsSplit
- func (assplit *AsSplit) Unstage(stage *Stage) *AsSplit
- func (assplit *AsSplit) UnstageVoid(stage *Stage)
- type AsSplitArea
- func (assplitarea *AsSplitArea) Checkout(stage *Stage) *AsSplitArea
- func (assplitarea *AsSplitArea) Commit(stage *Stage) *AsSplitArea
- func (assplitarea *AsSplitArea) CommitVoid(stage *Stage)
- func (from *AsSplitArea) CopyBasicFields(to *AsSplitArea)
- func (assplitarea *AsSplitArea) GetName() (res string)
- func (assplitarea *AsSplitArea) Stage(stage *Stage) *AsSplitArea
- func (assplitarea *AsSplitArea) Unstage(stage *Stage) *AsSplitArea
- func (assplitarea *AsSplitArea) UnstageVoid(stage *Stage)
- type AsSplitArea_WOP
- type AsSplit_WOP
- type BackRepoInterface
- type Button
- func (button *Button) Checkout(stage *Stage) *Button
- func (button *Button) Commit(stage *Stage) *Button
- func (button *Button) CommitVoid(stage *Stage)
- func (from *Button) CopyBasicFields(to *Button)
- func (button *Button) GetName() (res string)
- func (button *Button) Stage(stage *Stage) *Button
- func (button *Button) Unstage(stage *Stage) *Button
- func (button *Button) UnstageVoid(stage *Stage)
- type Button_WOP
- type Cursor
- func (cursor *Cursor) Checkout(stage *Stage) *Cursor
- func (cursor *Cursor) Commit(stage *Stage) *Cursor
- func (cursor *Cursor) CommitVoid(stage *Stage)
- func (from *Cursor) CopyBasicFields(to *Cursor)
- func (cursor *Cursor) GetName() (res string)
- func (cursor *Cursor) Stage(stage *Stage) *Cursor
- func (cursor *Cursor) Unstage(stage *Stage) *Cursor
- func (cursor *Cursor) UnstageVoid(stage *Stage)
- type Cursor_WOP
- type DiffHunk
- type DiffOp
- type Direction
- func (direction Direction) CodeValues() (res []string)
- func (direction Direction) Codes() (res []string)
- func (direction *Direction) FromCodeString(input string) (err error)
- func (direction *Direction) FromString(input string) (err error)
- func (direction *Direction) ToCodeString() (res string)
- func (direction Direction) ToString() (res string)
- type Doc
- func (doc *Doc) Checkout(stage *Stage) *Doc
- func (doc *Doc) Commit(stage *Stage) *Doc
- func (doc *Doc) CommitVoid(stage *Stage)
- func (from *Doc) CopyBasicFields(to *Doc)
- func (doc *Doc) GetName() (res string)
- func (doc *Doc) Stage(stage *Stage) *Doc
- func (doc *Doc) Unstage(stage *Stage) *Doc
- func (doc *Doc) UnstageVoid(stage *Stage)
- type Doc_WOP
- type ExcelizeTabulator
- type FavIcon
- func (favicon *FavIcon) Checkout(stage *Stage) *FavIcon
- func (favicon *FavIcon) Commit(stage *Stage) *FavIcon
- func (favicon *FavIcon) CommitVoid(stage *Stage)
- func (from *FavIcon) CopyBasicFields(to *FavIcon)
- func (favicon *FavIcon) GetName() (res string)
- func (favicon *FavIcon) Stage(stage *Stage) *FavIcon
- func (favicon *FavIcon) Unstage(stage *Stage) *FavIcon
- func (favicon *FavIcon) UnstageVoid(stage *Stage)
- type FavIcon_WOP
- type Form
- func (form *Form) Checkout(stage *Stage) *Form
- func (form *Form) Commit(stage *Stage) *Form
- func (form *Form) CommitVoid(stage *Stage)
- func (from *Form) CopyBasicFields(to *Form)
- func (form *Form) GetName() (res string)
- func (form *Form) Stage(stage *Stage) *Form
- func (form *Form) Unstage(stage *Stage) *Form
- func (form *Form) UnstageVoid(stage *Stage)
- type Form_WOP
- type GONG__ExpressionType
- type GONG__Identifier
- type GongFieldValue
- type GongFieldValueType
- type GongStructInterface
- type Gongstruct
- type GongstructEnumIntField
- type GongstructEnumStringField
- type GongstructMapString
- type GongstructSet
- type GongtructBasicField
- type Load
- func (load *Load) Checkout(stage *Stage) *Load
- func (load *Load) Commit(stage *Stage) *Load
- func (load *Load) CommitVoid(stage *Stage)
- func (from *Load) CopyBasicFields(to *Load)
- func (load *Load) GetName() (res string)
- func (load *Load) Stage(stage *Stage) *Load
- func (load *Load) Unstage(stage *Stage) *Load
- func (load *Load) UnstageVoid(stage *Stage)
- type Load_WOP
- type LogoOnTheLeft
- func (logoontheleft *LogoOnTheLeft) Checkout(stage *Stage) *LogoOnTheLeft
- func (logoontheleft *LogoOnTheLeft) Commit(stage *Stage) *LogoOnTheLeft
- func (logoontheleft *LogoOnTheLeft) CommitVoid(stage *Stage)
- func (from *LogoOnTheLeft) CopyBasicFields(to *LogoOnTheLeft)
- func (logoontheleft *LogoOnTheLeft) GetName() (res string)
- func (logoontheleft *LogoOnTheLeft) Stage(stage *Stage) *LogoOnTheLeft
- func (logoontheleft *LogoOnTheLeft) Unstage(stage *Stage) *LogoOnTheLeft
- func (logoontheleft *LogoOnTheLeft) UnstageVoid(stage *Stage)
- type LogoOnTheLeft_WOP
- type LogoOnTheRight
- func (logoontheright *LogoOnTheRight) Checkout(stage *Stage) *LogoOnTheRight
- func (logoontheright *LogoOnTheRight) Commit(stage *Stage) *LogoOnTheRight
- func (logoontheright *LogoOnTheRight) CommitVoid(stage *Stage)
- func (from *LogoOnTheRight) CopyBasicFields(to *LogoOnTheRight)
- func (logoontheright *LogoOnTheRight) GetName() (res string)
- func (logoontheright *LogoOnTheRight) Stage(stage *Stage) *LogoOnTheRight
- func (logoontheright *LogoOnTheRight) Unstage(stage *Stage) *LogoOnTheRight
- func (logoontheright *LogoOnTheRight) UnstageVoid(stage *Stage)
- type LogoOnTheRight_WOP
- type NamedStruct
- type OnAfterCreateInterface
- type OnAfterDeleteInterface
- type OnAfterReadInterface
- type OnAfterUpdateInterface
- type OnInitCommitInterface
- type PointerToGongstruct
- type PointerToGongstructEnumIntField
- type PointerToGongstructEnumStringField
- type ReverseField
- type Slider
- func (slider *Slider) Checkout(stage *Stage) *Slider
- func (slider *Slider) Commit(stage *Stage) *Slider
- func (slider *Slider) CommitVoid(stage *Stage)
- func (from *Slider) CopyBasicFields(to *Slider)
- func (slider *Slider) GetName() (res string)
- func (slider *Slider) Stage(stage *Stage) *Slider
- func (slider *Slider) Unstage(stage *Stage) *Slider
- func (slider *Slider) UnstageVoid(stage *Stage)
- type Slider_WOP
- type Split
- func (split *Split) Checkout(stage *Stage) *Split
- func (split *Split) Commit(stage *Stage) *Split
- func (split *Split) CommitVoid(stage *Stage)
- func (from *Split) CopyBasicFields(to *Split)
- func (split *Split) GetName() (res string)
- func (split *Split) Stage(stage *Stage) *Split
- func (split *Split) Unstage(stage *Stage) *Split
- func (split *Split) UnstageVoid(stage *Stage)
- type Split_WOP
- type Stage
- func (stage *Stage) Backup(dirPath string)
- func (stage *Stage) BackupXL(dirPath string)
- func (stage *Stage) Checkout()
- func (stage *Stage) Commit()
- func (stage *Stage) CommitWithSuspendedCallbacks()
- func (stage *Stage) ComputeReverseMaps()
- func (stage *Stage) GetDigramsEmbededDir() embed.FS
- func (stage *Stage) GetMap_GongStructName_InstancesNb() map[string]int
- func (stage *Stage) GetModelsEmbededDir() embed.FS
- func (stage *Stage) GetName() string
- func (stage *Stage) GetNamedStructNamesByOrder(namedStructName string) (res []string)
- func (stage *Stage) GetNamedStructsNames() (res []string)
- func (stage *Stage) GetProbeFormStageName() string
- func (stage *Stage) GetProbeSplitStageName() string
- func (stage *Stage) GetProbeTableStageName() string
- func (stage *Stage) GetProbeTreeSidebarStageName() string
- func (stage *Stage) GetType() string
- func (stage *Stage) IsStagedAsSplit(assplit *AsSplit) (ok bool)
- func (stage *Stage) IsStagedAsSplitArea(assplitarea *AsSplitArea) (ok bool)
- func (stage *Stage) IsStagedButton(button *Button) (ok bool)
- func (stage *Stage) IsStagedCursor(cursor *Cursor) (ok bool)
- func (stage *Stage) IsStagedDoc(doc *Doc) (ok bool)
- func (stage *Stage) IsStagedFavIcon(favicon *FavIcon) (ok bool)
- func (stage *Stage) IsStagedForm(form *Form) (ok bool)
- func (stage *Stage) IsStagedLoad(load *Load) (ok bool)
- func (stage *Stage) IsStagedLogoOnTheLeft(logoontheleft *LogoOnTheLeft) (ok bool)
- func (stage *Stage) IsStagedLogoOnTheRight(logoontheright *LogoOnTheRight) (ok bool)
- func (stage *Stage) IsStagedSlider(slider *Slider) (ok bool)
- func (stage *Stage) IsStagedSplit(split *Split) (ok bool)
- func (stage *Stage) IsStagedSvg(svg *Svg) (ok bool)
- func (stage *Stage) IsStagedTable(table *Table) (ok bool)
- func (stage *Stage) IsStagedTitle(title *Title) (ok bool)
- func (stage *Stage) IsStagedTone(tone *Tone) (ok bool)
- func (stage *Stage) IsStagedTree(tree *Tree) (ok bool)
- func (stage *Stage) IsStagedView(view *View) (ok bool)
- func (stage *Stage) IsStagedXlsx(xlsx *Xlsx) (ok bool)
- func (stage *Stage) Marshall(file *os.File, modelsPackageName, packageName string)
- func (stage *Stage) Nil()
- func (stage *Stage) Reset()
- func (stage *Stage) Restore(dirPath string)
- func (stage *Stage) RestoreXL(dirPath string)
- func (stage *Stage) SetGeneratesDiff(generatesDiff bool)
- func (stage *Stage) StageBranchAsSplit(assplit *AsSplit)
- func (stage *Stage) StageBranchAsSplitArea(assplitarea *AsSplitArea)
- func (stage *Stage) StageBranchButton(button *Button)
- func (stage *Stage) StageBranchCursor(cursor *Cursor)
- func (stage *Stage) StageBranchDoc(doc *Doc)
- func (stage *Stage) StageBranchFavIcon(favicon *FavIcon)
- func (stage *Stage) StageBranchForm(form *Form)
- func (stage *Stage) StageBranchLoad(load *Load)
- func (stage *Stage) StageBranchLogoOnTheLeft(logoontheleft *LogoOnTheLeft)
- func (stage *Stage) StageBranchLogoOnTheRight(logoontheright *LogoOnTheRight)
- func (stage *Stage) StageBranchSlider(slider *Slider)
- func (stage *Stage) StageBranchSplit(split *Split)
- func (stage *Stage) StageBranchSvg(svg *Svg)
- func (stage *Stage) StageBranchTable(table *Table)
- func (stage *Stage) StageBranchTitle(title *Title)
- func (stage *Stage) StageBranchTone(tone *Tone)
- func (stage *Stage) StageBranchTree(tree *Tree)
- func (stage *Stage) StageBranchView(view *View)
- func (stage *Stage) StageBranchXlsx(xlsx *Xlsx)
- func (stage *Stage) Unstage()
- func (stage *Stage) UnstageBranchAsSplit(assplit *AsSplit)
- func (stage *Stage) UnstageBranchAsSplitArea(assplitarea *AsSplitArea)
- func (stage *Stage) UnstageBranchButton(button *Button)
- func (stage *Stage) UnstageBranchCursor(cursor *Cursor)
- func (stage *Stage) UnstageBranchDoc(doc *Doc)
- func (stage *Stage) UnstageBranchFavIcon(favicon *FavIcon)
- func (stage *Stage) UnstageBranchForm(form *Form)
- func (stage *Stage) UnstageBranchLoad(load *Load)
- func (stage *Stage) UnstageBranchLogoOnTheLeft(logoontheleft *LogoOnTheLeft)
- func (stage *Stage) UnstageBranchLogoOnTheRight(logoontheright *LogoOnTheRight)
- func (stage *Stage) UnstageBranchSlider(slider *Slider)
- func (stage *Stage) UnstageBranchSplit(split *Split)
- func (stage *Stage) UnstageBranchSvg(svg *Svg)
- func (stage *Stage) UnstageBranchTable(table *Table)
- func (stage *Stage) UnstageBranchTitle(title *Title)
- func (stage *Stage) UnstageBranchTone(tone *Tone)
- func (stage *Stage) UnstageBranchTree(tree *Tree)
- func (stage *Stage) UnstageBranchView(view *View)
- func (stage *Stage) UnstageBranchXlsx(xlsx *Xlsx)
- type Svg
- func (svg *Svg) Checkout(stage *Stage) *Svg
- func (svg *Svg) Commit(stage *Stage) *Svg
- func (svg *Svg) CommitVoid(stage *Stage)
- func (from *Svg) CopyBasicFields(to *Svg)
- func (svg *Svg) GetName() (res string)
- func (svg *Svg) Stage(stage *Stage) *Svg
- func (svg *Svg) Unstage(stage *Stage) *Svg
- func (svg *Svg) UnstageVoid(stage *Stage)
- type Svg_WOP
- type Table
- func (table *Table) Checkout(stage *Stage) *Table
- func (table *Table) Commit(stage *Stage) *Table
- func (table *Table) CommitVoid(stage *Stage)
- func (from *Table) CopyBasicFields(to *Table)
- func (table *Table) GetName() (res string)
- func (table *Table) Stage(stage *Stage) *Table
- func (table *Table) Unstage(stage *Stage) *Table
- func (table *Table) UnstageVoid(stage *Stage)
- type Table_WOP
- type Tabulator
- type Title
- func (title *Title) Checkout(stage *Stage) *Title
- func (title *Title) Commit(stage *Stage) *Title
- func (title *Title) CommitVoid(stage *Stage)
- func (from *Title) CopyBasicFields(to *Title)
- func (title *Title) GetName() (res string)
- func (title *Title) Stage(stage *Stage) *Title
- func (title *Title) Unstage(stage *Stage) *Title
- func (title *Title) UnstageVoid(stage *Stage)
- type Title_WOP
- type Tone
- func (tone *Tone) Checkout(stage *Stage) *Tone
- func (tone *Tone) Commit(stage *Stage) *Tone
- func (tone *Tone) CommitVoid(stage *Stage)
- func (from *Tone) CopyBasicFields(to *Tone)
- func (tone *Tone) GetName() (res string)
- func (tone *Tone) Stage(stage *Stage) *Tone
- func (tone *Tone) Unstage(stage *Stage) *Tone
- func (tone *Tone) UnstageVoid(stage *Stage)
- type Tone_WOP
- type Tree
- func (tree *Tree) Checkout(stage *Stage) *Tree
- func (tree *Tree) Commit(stage *Stage) *Tree
- func (tree *Tree) CommitVoid(stage *Stage)
- func (from *Tree) CopyBasicFields(to *Tree)
- func (tree *Tree) GetName() (res string)
- func (tree *Tree) Stage(stage *Stage) *Tree
- func (tree *Tree) Unstage(stage *Stage) *Tree
- func (tree *Tree) UnstageVoid(stage *Stage)
- type Tree_WOP
- type View
- func (view *View) Checkout(stage *Stage) *View
- func (view *View) Commit(stage *Stage) *View
- func (view *View) CommitVoid(stage *Stage)
- func (from *View) CopyBasicFields(to *View)
- func (view *View) GetName() (res string)
- func (view *View) Stage(stage *Stage) *View
- func (view *View) Unstage(stage *Stage) *View
- func (view *View) UnstageVoid(stage *Stage)
- type View_WOP
- type Xlsx
- func (xlsx *Xlsx) Checkout(stage *Stage) *Xlsx
- func (xlsx *Xlsx) Commit(stage *Stage) *Xlsx
- func (xlsx *Xlsx) CommitVoid(stage *Stage)
- func (from *Xlsx) CopyBasicFields(to *Xlsx)
- func (xlsx *Xlsx) GetName() (res string)
- func (xlsx *Xlsx) Stage(stage *Stage) *Xlsx
- func (xlsx *Xlsx) Unstage(stage *Stage) *Xlsx
- func (xlsx *Xlsx) UnstageVoid(stage *Stage)
- type Xlsx_WOP
Constants ¶
const IdentifiersDecls = `
{{Identifier}} := (&models.{{GeneratedStructName}}{}).Stage(stage)`
const MetaFieldStructInitStatement = `
{{Identifier}}.{{GeneratedFieldName}} = ` + `{{GeneratedFieldNameValue}}`
const NumberInitStatement = `
{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
const PointerFieldInitStatement = `
{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
const ProbeFormSuffix = ":form of the probe"
const ProbeSplitSuffix = ":probe of the probe"
const ProbeTableSuffix = ":table of the probe"
const ProbeTreeSidebarSuffix = ":sidebar of the probe"
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 *Stage, instance *Type)
AfterCreateFromFront is called after a create from front
func AfterDeleteFromFront ¶
func AfterDeleteFromFront[Type Gongstruct](stage *Stage, staged, front *Type)
AfterDeleteFromFront is called after a delete from front
func AfterReadFromFront ¶
func AfterReadFromFront[Type Gongstruct](stage *Stage, instance *Type)
AfterReadFromFront is called after a Read from front
func AfterUpdateFromFront ¶
func AfterUpdateFromFront[Type Gongstruct](stage *Stage, old, new *Type)
AfterUpdateFromFront is called after a update from front
func CompareGongstructByName ¶
func CompareGongstructByName[T PointerToGongstruct](a, b T) int
func ComputeDiff ¶
ComputeDiff generates a git-style unified diff from string a to string b
func CopyBranch ¶
func CopyBranch[Type Gongstruct](from *Type) (to *Type)
CopyBranch stages instance and apply CopyBranch on all gongstruct instances that are referenced by pointers or slices of pointers of the instance
the algorithm stops along the course of graph if a vertex is already staged
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 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 *Stage) (sortedSlice []T)
func GetGongstructInstancesMap ¶
func GetGongstructInstancesMap[Type Gongstruct](stage *Stage) *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 *Stage) *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 *Stage) *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 GetNamedStructInstances ¶
func GetNamedStructInstances[T PointerToGongstruct](set map[T]any, order map[T]uint) (res []string)
func GetOrder ¶
func GetOrder[Type Gongstruct](stage *Stage, instance *Type) uint
func GetOrderPointerGongstruct ¶
func GetOrderPointerGongstruct[Type PointerToGongstruct](stage *Stage, instance Type) uint
func GetPointerReverseMap ¶
func GetPointerReverseMap[Start, End Gongstruct](fieldname string, stage *Stage) 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 GetReverseFieldOwner ¶
func GetReverseFieldOwner[T Gongstruct]( stage *Stage, instance *T, reverseField *ReverseField) (res any)
func GetReverseFieldOwnerName ¶
func GetReverseFieldOwnerName( stage *Stage, instance any, reverseField *ReverseField) (res string)
func GetSliceOfPointersReverseMap ¶
func GetSliceOfPointersReverseMap[Start, End Gongstruct](fieldname string, stage *Stage) 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 GetStructInstancesByOrder ¶
func GetStructInstancesByOrder[T PointerToGongstruct](set map[T]any, order map[T]uint) (res []T)
func GongGetMap ¶
func GongGetMap[Type GongstructMapString](stage *Stage) *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 *Stage) *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 *Stage, instance *Type) (ok bool)
func ParseAstEmbeddedFile ¶
ParseAstEmbeddedFile parses the Go source code from an embedded file specified by pathToFile within the provided embed.FS directory and stages instances declared in the file using the provided Stage.
Parameters:
stage: The staging area to populate. directory: The embedded filesystem containing the file. pathToFile: The path to the Go source file within the embedded filesystem.
Returns:
An error if reading or parsing the file fails, or if ParseAstFileFromAst fails.
func ParseAstFile ¶
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 ReplaceOldDeclarationsInFile ¶
ReplaceOldDeclarationsInFile replaces specific text in a file at the given path.
func Serialize ¶
func Serialize[Type Gongstruct](stage *Stage, tab Tabulator)
func SerializeExcelize ¶
func SerializeExcelize[Type Gongstruct](stage *Stage, f *excelize.File)
func SerializeExcelizePointerToGongstruct ¶
func SerializeExcelizePointerToGongstruct[Type PointerToGongstruct](stage *Stage, f *excelize.File)
func SerializeStage ¶
func SetCallbackAfterCreateFromFront ¶
func SetCallbackAfterCreateFromFront[Type Gongstruct](stage *Stage, callback OnAfterCreateInterface[Type])
func SetCallbackAfterDeleteFromFront ¶
func SetCallbackAfterDeleteFromFront[Type Gongstruct](stage *Stage, callback OnAfterDeleteInterface[Type])
func SetCallbackAfterReadFromFront ¶
func SetCallbackAfterReadFromFront[Type Gongstruct](stage *Stage, callback OnAfterReadInterface[Type])
func SetCallbackAfterUpdateFromFront ¶
func SetCallbackAfterUpdateFromFront[Type Gongstruct](stage *Stage, callback OnAfterUpdateInterface[Type])
SetCallbackAfterUpdateFromFront is a function to set up callback that is robust to refactoring
func SetOrchestratorOnAfterUpdate ¶
func SetOrchestratorOnAfterUpdate[Type Gongstruct](stage *Stage)
func SortGongstructSetByName ¶
func SortGongstructSetByName[T PointerToGongstruct](set map[T]any) (sortedSlice []T)
func StageBranch ¶
func StageBranch[Type Gongstruct](stage *Stage, instance *Type)
StageBranch stages instance and apply StageBranch on all gongstruct instances that are referenced by pointers or slices of pointers of the instance
the algorithm stops along the course of graph if a vertex is already staged
func UnmarshallGongstructStaging ¶
func UnmarshallGongstructStaging(stage *Stage, 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 *Stage, 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 { CreateORMAsSplit(AsSplit *AsSplit) CreateORMAsSplitArea(AsSplitArea *AsSplitArea) CreateORMButton(Button *Button) CreateORMCursor(Cursor *Cursor) CreateORMDoc(Doc *Doc) CreateORMFavIcon(FavIcon *FavIcon) CreateORMForm(Form *Form) CreateORMLoad(Load *Load) CreateORMLogoOnTheLeft(LogoOnTheLeft *LogoOnTheLeft) CreateORMLogoOnTheRight(LogoOnTheRight *LogoOnTheRight) CreateORMSlider(Slider *Slider) CreateORMSplit(Split *Split) CreateORMSvg(Svg *Svg) CreateORMTable(Table *Table) CreateORMTitle(Title *Title) CreateORMTone(Tone *Tone) CreateORMTree(Tree *Tree) CreateORMView(View *View) CreateORMXlsx(Xlsx *Xlsx) }
swagger:ignore
type AllModelsStructDeleteInterface ¶
type AllModelsStructDeleteInterface interface { DeleteORMAsSplit(AsSplit *AsSplit) DeleteORMAsSplitArea(AsSplitArea *AsSplitArea) DeleteORMButton(Button *Button) DeleteORMCursor(Cursor *Cursor) DeleteORMDoc(Doc *Doc) DeleteORMFavIcon(FavIcon *FavIcon) DeleteORMForm(Form *Form) DeleteORMLoad(Load *Load) DeleteORMLogoOnTheLeft(LogoOnTheLeft *LogoOnTheLeft) DeleteORMLogoOnTheRight(LogoOnTheRight *LogoOnTheRight) DeleteORMSlider(Slider *Slider) DeleteORMSplit(Split *Split) DeleteORMSvg(Svg *Svg) DeleteORMTable(Table *Table) DeleteORMTitle(Title *Title) DeleteORMTone(Tone *Tone) DeleteORMTree(Tree *Tree) DeleteORMView(View *View) DeleteORMXlsx(Xlsx *Xlsx) }
type AsSplit ¶
type AsSplit struct { Name string Direction Direction AsSplitAreas []*AsSplitArea }
func CopyBranchAsSplit ¶
insertion point for stage branch per struct
func (*AsSplit) CommitVoid ¶
func (*AsSplit) CopyBasicFields ¶
func (*AsSplit) Stage ¶
insertion point for cumulative sub template with model space calls Stage puts assplit to the model stage
func (*AsSplit) UnstageVoid ¶
UnstageVoid removes assplit off the model stage
type AsSplitArea ¶
type AsSplitArea struct { Name string ShowNameInHeader bool Size float64 // IsAany make the split area set size to "$any(*)" IsAny bool AsSplit *AsSplit Button *Button Cursor *Cursor Doc *Doc Form *Form Load *Load Slider *Slider Split *Split Svg *Svg Table *Table Tone *Tone Tree *Tree Xlsx *Xlsx HasDiv bool DivStyle string // in case of div, the div style }
func CopyBranchAsSplitArea ¶
func CopyBranchAsSplitArea(mapOrigCopy map[any]any, assplitareaFrom *AsSplitArea) (assplitareaTo *AsSplitArea)
func (*AsSplitArea) Checkout ¶
func (assplitarea *AsSplitArea) Checkout(stage *Stage) *AsSplitArea
Checkout assplitarea to the back repo (if it is already staged)
func (*AsSplitArea) Commit ¶
func (assplitarea *AsSplitArea) Commit(stage *Stage) *AsSplitArea
commit assplitarea to the back repo (if it is already staged)
func (*AsSplitArea) CommitVoid ¶
func (assplitarea *AsSplitArea) CommitVoid(stage *Stage)
func (*AsSplitArea) CopyBasicFields ¶
func (from *AsSplitArea) CopyBasicFields(to *AsSplitArea)
func (*AsSplitArea) GetName ¶
func (assplitarea *AsSplitArea) GetName() (res string)
for satisfaction of GongStruct interface
func (*AsSplitArea) Stage ¶
func (assplitarea *AsSplitArea) Stage(stage *Stage) *AsSplitArea
Stage puts assplitarea to the model stage
func (*AsSplitArea) Unstage ¶
func (assplitarea *AsSplitArea) Unstage(stage *Stage) *AsSplitArea
Unstage removes assplitarea off the model stage
func (*AsSplitArea) UnstageVoid ¶
func (assplitarea *AsSplitArea) UnstageVoid(stage *Stage)
UnstageVoid removes assplitarea off the model stage
type AsSplitArea_WOP ¶
type BackRepoInterface ¶
type BackRepoInterface interface { Commit(stage *Stage) Checkout(stage *Stage) Backup(stage *Stage, dirPath string) Restore(stage *Stage, dirPath string) BackupXL(stage *Stage, dirPath string) RestoreXL(stage *Stage, dirPath string) // insertion point for Commit and Checkout signatures CommitAsSplit(assplit *AsSplit) CheckoutAsSplit(assplit *AsSplit) CommitAsSplitArea(assplitarea *AsSplitArea) CheckoutAsSplitArea(assplitarea *AsSplitArea) CommitButton(button *Button) CheckoutButton(button *Button) CommitCursor(cursor *Cursor) CheckoutCursor(cursor *Cursor) CommitDoc(doc *Doc) CheckoutDoc(doc *Doc) CommitFavIcon(favicon *FavIcon) CheckoutFavIcon(favicon *FavIcon) CommitForm(form *Form) CheckoutForm(form *Form) CommitLoad(load *Load) CheckoutLoad(load *Load) CommitLogoOnTheLeft(logoontheleft *LogoOnTheLeft) CheckoutLogoOnTheLeft(logoontheleft *LogoOnTheLeft) CommitLogoOnTheRight(logoontheright *LogoOnTheRight) CheckoutLogoOnTheRight(logoontheright *LogoOnTheRight) CommitSlider(slider *Slider) CheckoutSlider(slider *Slider) CommitSplit(split *Split) CheckoutSplit(split *Split) CommitSvg(svg *Svg) CheckoutSvg(svg *Svg) CommitTable(table *Table) CheckoutTable(table *Table) CommitTitle(title *Title) CheckoutTitle(title *Title) CommitTone(tone *Tone) CheckoutTone(tone *Tone) CommitTree(tree *Tree) CheckoutTree(tree *Tree) CommitView(view *View) CheckoutView(view *View) CommitXlsx(xlsx *Xlsx) CheckoutXlsx(xlsx *Xlsx) GetLastCommitFromBackNb() uint GetLastPushFromFrontNb() uint }
type Button ¶
func CopyBranchButton ¶
func (*Button) CommitVoid ¶
func (*Button) CopyBasicFields ¶
func (*Button) UnstageVoid ¶
UnstageVoid removes button off the model stage
type Button_WOP ¶
type Cursor ¶
func CopyBranchCursor ¶
func (*Cursor) CommitVoid ¶
func (*Cursor) CopyBasicFields ¶
func (*Cursor) UnstageVoid ¶
UnstageVoid removes cursor off the model stage
type Cursor_WOP ¶
type Direction ¶
type Direction string
func (Direction) CodeValues ¶
func (*Direction) FromCodeString ¶
func (*Direction) FromString ¶
func (*Direction) ToCodeString ¶
type Doc ¶
func (*Doc) CommitVoid ¶
func (*Doc) CopyBasicFields ¶
func (*Doc) UnstageVoid ¶
UnstageVoid removes doc off the model stage
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 FavIcon ¶
You can configure the browser tab title and favicon dynamically in Angular creates one instance and it will set the browser accordingly
func CopyBranchFavIcon ¶
func (*FavIcon) CommitVoid ¶
func (*FavIcon) CopyBasicFields ¶
func (*FavIcon) UnstageVoid ¶
UnstageVoid removes favicon off the model stage
type FavIcon_WOP ¶
type Form ¶
func (*Form) CommitVoid ¶
func (*Form) CopyBasicFields ¶
func (*Form) UnstageVoid ¶
UnstageVoid removes form off the model stage
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 GongFieldValue ¶
type GongFieldValue struct { GongFieldValueType // contains filtered or unexported fields }
func GetFieldStringValue ¶
func GetFieldStringValue(instance any, fieldName string) (res GongFieldValue)
func GetFieldStringValueFromPointer ¶
func GetFieldStringValueFromPointer(instance any, fieldName string) (res GongFieldValue)
func (*GongFieldValue) GetValueBool ¶
func (gongValueField *GongFieldValue) GetValueBool() bool
func (*GongFieldValue) GetValueFloat ¶
func (gongValueField *GongFieldValue) GetValueFloat() float64
func (*GongFieldValue) GetValueInt ¶
func (gongValueField *GongFieldValue) GetValueInt() int
func (*GongFieldValue) GetValueString ¶
func (gongValueField *GongFieldValue) GetValueString() string
type GongFieldValueType ¶
type GongFieldValueType string
const ( GongFieldValueTypeInt GongFieldValueType = "GongFieldValueTypeInt" GongFieldValueTypeFloat GongFieldValueType = "GongFieldValueTypeFloat" GongFieldValueTypeBool GongFieldValueType = "GongFieldValueTypeBool" GongFieldValueTypeOthers GongFieldValueType = "GongFieldValueTypeOthers" )
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 { }
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 GongstructMapString ¶
type GongstructSet ¶
type GongtructBasicField ¶
type Load ¶
func (*Load) CommitVoid ¶
func (*Load) CopyBasicFields ¶
func (*Load) UnstageVoid ¶
UnstageVoid removes load off the model stage
type LogoOnTheLeft ¶
type LogoOnTheLeft struct { Name string Width int Height int //gong:width 600 gong:height 300 SVG string }
LogoOnTheLeft displayed in the banner
func CopyBranchLogoOnTheLeft ¶
func CopyBranchLogoOnTheLeft(mapOrigCopy map[any]any, logoontheleftFrom *LogoOnTheLeft) (logoontheleftTo *LogoOnTheLeft)
func (*LogoOnTheLeft) Checkout ¶
func (logoontheleft *LogoOnTheLeft) Checkout(stage *Stage) *LogoOnTheLeft
Checkout logoontheleft to the back repo (if it is already staged)
func (*LogoOnTheLeft) Commit ¶
func (logoontheleft *LogoOnTheLeft) Commit(stage *Stage) *LogoOnTheLeft
commit logoontheleft to the back repo (if it is already staged)
func (*LogoOnTheLeft) CommitVoid ¶
func (logoontheleft *LogoOnTheLeft) CommitVoid(stage *Stage)
func (*LogoOnTheLeft) CopyBasicFields ¶
func (from *LogoOnTheLeft) CopyBasicFields(to *LogoOnTheLeft)
func (*LogoOnTheLeft) GetName ¶
func (logoontheleft *LogoOnTheLeft) GetName() (res string)
for satisfaction of GongStruct interface
func (*LogoOnTheLeft) Stage ¶
func (logoontheleft *LogoOnTheLeft) Stage(stage *Stage) *LogoOnTheLeft
Stage puts logoontheleft to the model stage
func (*LogoOnTheLeft) Unstage ¶
func (logoontheleft *LogoOnTheLeft) Unstage(stage *Stage) *LogoOnTheLeft
Unstage removes logoontheleft off the model stage
func (*LogoOnTheLeft) UnstageVoid ¶
func (logoontheleft *LogoOnTheLeft) UnstageVoid(stage *Stage)
UnstageVoid removes logoontheleft off the model stage
type LogoOnTheLeft_WOP ¶
type LogoOnTheRight ¶
type LogoOnTheRight struct { Name string Width int Height int //gong:width 600 gong:height 300 SVG string }
LogoOnTheLeft displayed in the banner
func CopyBranchLogoOnTheRight ¶
func CopyBranchLogoOnTheRight(mapOrigCopy map[any]any, logoontherightFrom *LogoOnTheRight) (logoontherightTo *LogoOnTheRight)
func (*LogoOnTheRight) Checkout ¶
func (logoontheright *LogoOnTheRight) Checkout(stage *Stage) *LogoOnTheRight
Checkout logoontheright to the back repo (if it is already staged)
func (*LogoOnTheRight) Commit ¶
func (logoontheright *LogoOnTheRight) Commit(stage *Stage) *LogoOnTheRight
commit logoontheright to the back repo (if it is already staged)
func (*LogoOnTheRight) CommitVoid ¶
func (logoontheright *LogoOnTheRight) CommitVoid(stage *Stage)
func (*LogoOnTheRight) CopyBasicFields ¶
func (from *LogoOnTheRight) CopyBasicFields(to *LogoOnTheRight)
func (*LogoOnTheRight) GetName ¶
func (logoontheright *LogoOnTheRight) GetName() (res string)
for satisfaction of GongStruct interface
func (*LogoOnTheRight) Stage ¶
func (logoontheright *LogoOnTheRight) Stage(stage *Stage) *LogoOnTheRight
Stage puts logoontheright to the model stage
func (*LogoOnTheRight) Unstage ¶
func (logoontheright *LogoOnTheRight) Unstage(stage *Stage) *LogoOnTheRight
Unstage removes logoontheright off the model stage
func (*LogoOnTheRight) UnstageVoid ¶
func (logoontheright *LogoOnTheRight) UnstageVoid(stage *Stage)
UnstageVoid removes logoontheright off the model stage
type LogoOnTheRight_WOP ¶
type NamedStruct ¶
type NamedStruct struct {
// contains filtered or unexported fields
}
func (*NamedStruct) GetName ¶
func (namedStruct *NamedStruct) GetName() string
type OnAfterCreateInterface ¶
type OnAfterCreateInterface[Type Gongstruct] interface { OnAfterCreate(stage *Stage, instance *Type) }
OnAfterCreateInterface callback when an instance is updated from the front
type OnAfterDeleteInterface ¶
type OnAfterDeleteInterface[Type Gongstruct] interface { OnAfterDelete(stage *Stage, staged, front *Type) }
OnAfterDeleteInterface callback when an instance is updated from the front
type OnAfterReadInterface ¶
type OnAfterReadInterface[Type Gongstruct] interface { OnAfterRead(stage *Stage, instance *Type) }
OnAfterReadInterface callback when an instance is updated from the front
type OnAfterUpdateInterface ¶
type OnAfterUpdateInterface[Type Gongstruct] interface { OnAfterUpdate(stage *Stage, old, new *Type) }
OnAfterUpdateInterface callback when an instance is updated from the front
type OnInitCommitInterface ¶
type OnInitCommitInterface interface {
BeforeCommit(stage *Stage)
}
type PointerToGongstruct ¶
type PointerToGongstruct interface { GetName() string CommitVoid(*Stage) UnstageVoid(stage *Stage) comparable }
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 ReverseField ¶
func GetReverseFields ¶
func GetReverseFields[Type Gongstruct]() (res []ReverseField)
type Slider ¶
func CopyBranchSlider ¶
func (*Slider) CommitVoid ¶
func (*Slider) CopyBasicFields ¶
func (*Slider) UnstageVoid ¶
UnstageVoid removes slider off the model stage
type Slider_WOP ¶
type Split ¶
func CopyBranchSplit ¶
func (*Split) CommitVoid ¶
func (*Split) CopyBasicFields ¶
func (*Split) UnstageVoid ¶
UnstageVoid removes split off the model stage
type Stage ¶
type Stage struct { // insertion point for definition of arrays registering instances AsSplits map[*AsSplit]any AsSplits_mapString map[string]*AsSplit // insertion point for slice of pointers maps AsSplit_AsSplitAreas_reverseMap map[*AsSplitArea]*AsSplit OnAfterAsSplitCreateCallback OnAfterCreateInterface[AsSplit] OnAfterAsSplitUpdateCallback OnAfterUpdateInterface[AsSplit] OnAfterAsSplitDeleteCallback OnAfterDeleteInterface[AsSplit] OnAfterAsSplitReadCallback OnAfterReadInterface[AsSplit] AsSplitAreas map[*AsSplitArea]any AsSplitAreas_mapString map[string]*AsSplitArea // insertion point for slice of pointers maps OnAfterAsSplitAreaCreateCallback OnAfterCreateInterface[AsSplitArea] OnAfterAsSplitAreaUpdateCallback OnAfterUpdateInterface[AsSplitArea] OnAfterAsSplitAreaDeleteCallback OnAfterDeleteInterface[AsSplitArea] OnAfterAsSplitAreaReadCallback OnAfterReadInterface[AsSplitArea] Buttons map[*Button]any Buttons_mapString map[string]*Button // insertion point for slice of pointers maps OnAfterButtonCreateCallback OnAfterCreateInterface[Button] OnAfterButtonUpdateCallback OnAfterUpdateInterface[Button] OnAfterButtonDeleteCallback OnAfterDeleteInterface[Button] OnAfterButtonReadCallback OnAfterReadInterface[Button] Cursors map[*Cursor]any Cursors_mapString map[string]*Cursor // insertion point for slice of pointers maps OnAfterCursorCreateCallback OnAfterCreateInterface[Cursor] OnAfterCursorUpdateCallback OnAfterUpdateInterface[Cursor] OnAfterCursorDeleteCallback OnAfterDeleteInterface[Cursor] OnAfterCursorReadCallback OnAfterReadInterface[Cursor] Docs map[*Doc]any Docs_mapString map[string]*Doc // insertion point for slice of pointers maps OnAfterDocCreateCallback OnAfterCreateInterface[Doc] OnAfterDocUpdateCallback OnAfterUpdateInterface[Doc] OnAfterDocDeleteCallback OnAfterDeleteInterface[Doc] OnAfterDocReadCallback OnAfterReadInterface[Doc] FavIcons map[*FavIcon]any FavIcons_mapString map[string]*FavIcon // insertion point for slice of pointers maps OnAfterFavIconCreateCallback OnAfterCreateInterface[FavIcon] OnAfterFavIconUpdateCallback OnAfterUpdateInterface[FavIcon] OnAfterFavIconDeleteCallback OnAfterDeleteInterface[FavIcon] OnAfterFavIconReadCallback OnAfterReadInterface[FavIcon] Forms map[*Form]any Forms_mapString map[string]*Form // insertion point for slice of pointers maps OnAfterFormCreateCallback OnAfterCreateInterface[Form] OnAfterFormUpdateCallback OnAfterUpdateInterface[Form] OnAfterFormDeleteCallback OnAfterDeleteInterface[Form] OnAfterFormReadCallback OnAfterReadInterface[Form] Loads map[*Load]any Loads_mapString map[string]*Load // insertion point for slice of pointers maps OnAfterLoadCreateCallback OnAfterCreateInterface[Load] OnAfterLoadUpdateCallback OnAfterUpdateInterface[Load] OnAfterLoadDeleteCallback OnAfterDeleteInterface[Load] OnAfterLoadReadCallback OnAfterReadInterface[Load] LogoOnTheLefts map[*LogoOnTheLeft]any LogoOnTheLefts_mapString map[string]*LogoOnTheLeft // insertion point for slice of pointers maps OnAfterLogoOnTheLeftCreateCallback OnAfterCreateInterface[LogoOnTheLeft] OnAfterLogoOnTheLeftUpdateCallback OnAfterUpdateInterface[LogoOnTheLeft] OnAfterLogoOnTheLeftDeleteCallback OnAfterDeleteInterface[LogoOnTheLeft] OnAfterLogoOnTheLeftReadCallback OnAfterReadInterface[LogoOnTheLeft] LogoOnTheRights map[*LogoOnTheRight]any LogoOnTheRights_mapString map[string]*LogoOnTheRight // insertion point for slice of pointers maps OnAfterLogoOnTheRightCreateCallback OnAfterCreateInterface[LogoOnTheRight] OnAfterLogoOnTheRightUpdateCallback OnAfterUpdateInterface[LogoOnTheRight] OnAfterLogoOnTheRightDeleteCallback OnAfterDeleteInterface[LogoOnTheRight] OnAfterLogoOnTheRightReadCallback OnAfterReadInterface[LogoOnTheRight] Sliders map[*Slider]any Sliders_mapString map[string]*Slider // insertion point for slice of pointers maps OnAfterSliderCreateCallback OnAfterCreateInterface[Slider] OnAfterSliderUpdateCallback OnAfterUpdateInterface[Slider] OnAfterSliderDeleteCallback OnAfterDeleteInterface[Slider] OnAfterSliderReadCallback OnAfterReadInterface[Slider] Splits map[*Split]any Splits_mapString map[string]*Split // insertion point for slice of pointers maps OnAfterSplitCreateCallback OnAfterCreateInterface[Split] OnAfterSplitUpdateCallback OnAfterUpdateInterface[Split] OnAfterSplitDeleteCallback OnAfterDeleteInterface[Split] OnAfterSplitReadCallback OnAfterReadInterface[Split] Svgs map[*Svg]any Svgs_mapString map[string]*Svg // insertion point for slice of pointers maps OnAfterSvgCreateCallback OnAfterCreateInterface[Svg] OnAfterSvgUpdateCallback OnAfterUpdateInterface[Svg] OnAfterSvgDeleteCallback OnAfterDeleteInterface[Svg] OnAfterSvgReadCallback OnAfterReadInterface[Svg] Tables map[*Table]any Tables_mapString map[string]*Table // insertion point for slice of pointers maps OnAfterTableCreateCallback OnAfterCreateInterface[Table] OnAfterTableUpdateCallback OnAfterUpdateInterface[Table] OnAfterTableDeleteCallback OnAfterDeleteInterface[Table] OnAfterTableReadCallback OnAfterReadInterface[Table] Titles map[*Title]any Titles_mapString map[string]*Title // insertion point for slice of pointers maps OnAfterTitleCreateCallback OnAfterCreateInterface[Title] OnAfterTitleUpdateCallback OnAfterUpdateInterface[Title] OnAfterTitleDeleteCallback OnAfterDeleteInterface[Title] OnAfterTitleReadCallback OnAfterReadInterface[Title] Tones map[*Tone]any Tones_mapString map[string]*Tone // insertion point for slice of pointers maps OnAfterToneCreateCallback OnAfterCreateInterface[Tone] OnAfterToneUpdateCallback OnAfterUpdateInterface[Tone] OnAfterToneDeleteCallback OnAfterDeleteInterface[Tone] OnAfterToneReadCallback OnAfterReadInterface[Tone] Trees map[*Tree]any Trees_mapString map[string]*Tree // insertion point for slice of pointers maps OnAfterTreeCreateCallback OnAfterCreateInterface[Tree] OnAfterTreeUpdateCallback OnAfterUpdateInterface[Tree] OnAfterTreeDeleteCallback OnAfterDeleteInterface[Tree] OnAfterTreeReadCallback OnAfterReadInterface[Tree] Views map[*View]any Views_mapString map[string]*View // insertion point for slice of pointers maps View_RootAsSplitAreas_reverseMap map[*AsSplitArea]*View OnAfterViewCreateCallback OnAfterCreateInterface[View] OnAfterViewUpdateCallback OnAfterUpdateInterface[View] OnAfterViewDeleteCallback OnAfterDeleteInterface[View] OnAfterViewReadCallback OnAfterReadInterface[View] Xlsxs map[*Xlsx]any Xlsxs_mapString map[string]*Xlsx // insertion point for slice of pointers maps OnAfterXlsxCreateCallback OnAfterCreateInterface[Xlsx] OnAfterXlsxUpdateCallback OnAfterUpdateInterface[Xlsx] OnAfterXlsxDeleteCallback OnAfterDeleteInterface[Xlsx] OnAfterXlsxReadCallback OnAfterReadInterface[Xlsx] 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 // store the stage order of each instance in order to // preserve this order when serializing them // insertion point for order fields declaration AsSplitOrder uint AsSplitMap_Staged_Order map[*AsSplit]uint AsSplitAreaOrder uint AsSplitAreaMap_Staged_Order map[*AsSplitArea]uint ButtonOrder uint ButtonMap_Staged_Order map[*Button]uint CursorOrder uint CursorMap_Staged_Order map[*Cursor]uint DocOrder uint DocMap_Staged_Order map[*Doc]uint FavIconOrder uint FavIconMap_Staged_Order map[*FavIcon]uint FormOrder uint FormMap_Staged_Order map[*Form]uint LoadOrder uint LoadMap_Staged_Order map[*Load]uint LogoOnTheLeftOrder uint LogoOnTheLeftMap_Staged_Order map[*LogoOnTheLeft]uint LogoOnTheRightOrder uint LogoOnTheRightMap_Staged_Order map[*LogoOnTheRight]uint SliderOrder uint SliderMap_Staged_Order map[*Slider]uint SplitOrder uint SplitMap_Staged_Order map[*Split]uint SvgOrder uint SvgMap_Staged_Order map[*Svg]uint TableOrder uint TableMap_Staged_Order map[*Table]uint TitleOrder uint TitleMap_Staged_Order map[*Title]uint ToneOrder uint ToneMap_Staged_Order map[*Tone]uint TreeOrder uint TreeMap_Staged_Order map[*Tree]uint ViewOrder uint ViewMap_Staged_Order map[*View]uint XlsxOrder uint XlsxMap_Staged_Order map[*Xlsx]uint NamedStructs []*NamedStruct // contains filtered or unexported fields }
Stage enables storage of staged instances swagger:ignore
func (*Stage) CommitWithSuspendedCallbacks ¶
func (stage *Stage) CommitWithSuspendedCallbacks()
func (*Stage) ComputeReverseMaps ¶
func (stage *Stage) 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 (*Stage) GetDigramsEmbededDir ¶
func (*Stage) GetMap_GongStructName_InstancesNb ¶
func (*Stage) GetModelsEmbededDir ¶
func (*Stage) GetNamedStructNamesByOrder ¶
func (*Stage) GetNamedStructsNames ¶
GetNamedStructs implements models.ProbebStage.
func (*Stage) GetProbeFormStageName ¶
func (*Stage) GetProbeSplitStageName ¶
func (*Stage) GetProbeTableStageName ¶
func (*Stage) GetProbeTreeSidebarStageName ¶
func (*Stage) IsStagedAsSplit ¶
insertion point for stage per struct
func (*Stage) IsStagedAsSplitArea ¶
func (stage *Stage) IsStagedAsSplitArea(assplitarea *AsSplitArea) (ok bool)
func (*Stage) IsStagedButton ¶
func (*Stage) IsStagedCursor ¶
func (*Stage) IsStagedDoc ¶
func (*Stage) IsStagedFavIcon ¶
func (*Stage) IsStagedForm ¶
func (*Stage) IsStagedLoad ¶
func (*Stage) IsStagedLogoOnTheLeft ¶
func (stage *Stage) IsStagedLogoOnTheLeft(logoontheleft *LogoOnTheLeft) (ok bool)
func (*Stage) IsStagedLogoOnTheRight ¶
func (stage *Stage) IsStagedLogoOnTheRight(logoontheright *LogoOnTheRight) (ok bool)
func (*Stage) IsStagedSlider ¶
func (*Stage) IsStagedSplit ¶
func (*Stage) IsStagedSvg ¶
func (*Stage) IsStagedTable ¶
func (*Stage) IsStagedTitle ¶
func (*Stage) IsStagedTone ¶
func (*Stage) IsStagedTree ¶
func (*Stage) IsStagedView ¶
func (*Stage) IsStagedXlsx ¶
func (*Stage) Marshall ¶
Marshall marshall the stage content into the file as an instanciation into a stage
func (*Stage) Restore ¶
Restore resets Stage & BackRepo and restores their content from the restore files in dirPath
func (*Stage) RestoreXL ¶
Restore resets Stage & BackRepo and restores their content from the restore files in dirPath
func (*Stage) SetGeneratesDiff ¶
func (*Stage) StageBranchAsSplit ¶
insertion point for stage branch per struct
func (*Stage) StageBranchAsSplitArea ¶
func (stage *Stage) StageBranchAsSplitArea(assplitarea *AsSplitArea)
func (*Stage) StageBranchButton ¶
func (*Stage) StageBranchCursor ¶
func (*Stage) StageBranchDoc ¶
func (*Stage) StageBranchFavIcon ¶
func (*Stage) StageBranchForm ¶
func (*Stage) StageBranchLoad ¶
func (*Stage) StageBranchLogoOnTheLeft ¶
func (stage *Stage) StageBranchLogoOnTheLeft(logoontheleft *LogoOnTheLeft)
func (*Stage) StageBranchLogoOnTheRight ¶
func (stage *Stage) StageBranchLogoOnTheRight(logoontheright *LogoOnTheRight)
func (*Stage) StageBranchSlider ¶
func (*Stage) StageBranchSplit ¶
func (*Stage) StageBranchSvg ¶
func (*Stage) StageBranchTable ¶
func (*Stage) StageBranchTitle ¶
func (*Stage) StageBranchTone ¶
func (*Stage) StageBranchTree ¶
func (*Stage) StageBranchView ¶
func (*Stage) StageBranchXlsx ¶
func (*Stage) UnstageBranchAsSplit ¶
insertion point for unstage branch per struct
func (*Stage) UnstageBranchAsSplitArea ¶
func (stage *Stage) UnstageBranchAsSplitArea(assplitarea *AsSplitArea)
func (*Stage) UnstageBranchButton ¶
func (*Stage) UnstageBranchCursor ¶
func (*Stage) UnstageBranchDoc ¶
func (*Stage) UnstageBranchFavIcon ¶
func (*Stage) UnstageBranchForm ¶
func (*Stage) UnstageBranchLoad ¶
func (*Stage) UnstageBranchLogoOnTheLeft ¶
func (stage *Stage) UnstageBranchLogoOnTheLeft(logoontheleft *LogoOnTheLeft)
func (*Stage) UnstageBranchLogoOnTheRight ¶
func (stage *Stage) UnstageBranchLogoOnTheRight(logoontheright *LogoOnTheRight)
func (*Stage) UnstageBranchSlider ¶
func (*Stage) UnstageBranchSplit ¶
func (*Stage) UnstageBranchSvg ¶
func (*Stage) UnstageBranchTable ¶
func (*Stage) UnstageBranchTitle ¶
func (*Stage) UnstageBranchTone ¶
func (*Stage) UnstageBranchTree ¶
func (*Stage) UnstageBranchView ¶
func (*Stage) UnstageBranchXlsx ¶
type Svg ¶
func (*Svg) CommitVoid ¶
func (*Svg) CopyBasicFields ¶
func (*Svg) UnstageVoid ¶
UnstageVoid removes svg off the model stage
type Table ¶
func CopyBranchTable ¶
func (*Table) CommitVoid ¶
func (*Table) CopyBasicFields ¶
func (*Table) UnstageVoid ¶
UnstageVoid removes table off the model stage
type Tabulator ¶
type Tabulator interface { AddSheet(sheetName string) AddRow(sheetName string) int AddCell(sheetName string, rowId, columnIndex int, value string) }
Tabulator is an interface for writing to a table strings
type Title ¶
type Title struct {
Name string
}
You can configure the browser tab title and favicon dynamically in Angular
func CopyBranchTitle ¶
func (*Title) CommitVoid ¶
func (*Title) CopyBasicFields ¶
func (*Title) UnstageVoid ¶
UnstageVoid removes title off the model stage
type Tone ¶
func (*Tone) CommitVoid ¶
func (*Tone) CopyBasicFields ¶
func (*Tone) UnstageVoid ¶
UnstageVoid removes tone off the model stage
type Tree ¶
func (*Tree) CommitVoid ¶
func (*Tree) CopyBasicFields ¶
func (*Tree) UnstageVoid ¶
UnstageVoid removes tree off the model stage
type View ¶
type View struct { Name string ShowViewName bool // by default, a standalone views wont display the RootAsSplitAreas []*AsSplitArea }
func (*View) CommitVoid ¶
func (*View) CopyBasicFields ¶
func (*View) UnstageVoid ¶
UnstageVoid removes view off the model stage
type Xlsx ¶
func (*Xlsx) CommitVoid ¶
func (*Xlsx) CopyBasicFields ¶
func (*Xlsx) UnstageVoid ¶
UnstageVoid removes xlsx off the model stage