Help us shape the future of Go! Take the 2026 Go Developer Survey

models

package
v0.0.0-...-03888e2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 32 Imported by: 14

Documentation

Overview

generated code - do not edit 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

generated code - do not edit

Index

Constants

View Source
const (
	// the whole stage is generated at each marshall. This is the default
	GongMarshallingNormal = gong_runtime.GongMarshallingNormal

	// only the last commit is append to the marshall file
	GongMarshallingAppendCommit = gong_runtime.GongMarshallingAppendCommit
)
View Source
const (
	GongNavigationModeNormal     = gong_runtime.GongNavigationModeNormal
	GongNavigationModeNavigating = gong_runtime.GongNavigationModeNavigating
)
View Source
const (
	GongProbeTreeSidebarSuffix           = gong_runtime.GongProbeTreeSidebarSuffix
	GongProbeNavigationTreeSidebarSuffix = gong_runtime.GongProbeNavigationTreeSidebarSuffix
	GongProbeTableSuffix                 = gong_runtime.GongProbeTableSuffix
	GongProbeNotificationTableSuffix     = gong_runtime.GongProbeNotificationTableSuffix
	GongProbeFormSuffix                  = gong_runtime.GongProbeFormSuffix
	GongProbeSplitSuffix                 = gong_runtime.GongProbeSplitSuffix
	GongProbeLoadSuffix                  = gong_runtime.GongProbeLoadSuffix
)
View Source
const (
	GONG__STRUCT_INSTANCE      = gong_runtime.GONG__STRUCT_INSTANCE
	GONG__FIELD_OR_CONST_VALUE = gong_runtime.GONG__FIELD_OR_CONST_VALUE
	GONG__FIELD_VALUE          = gong_runtime.GONG__FIELD_VALUE
	GONG__ENUM_CAST_INT        = gong_runtime.GONG__ENUM_CAST_INT
	GONG__ENUM_CAST_STRING     = gong_runtime.GONG__ENUM_CAST_STRING
	GONG__IDENTIFIER_CONST     = gong_runtime.GONG__IDENTIFIER_CONST
)
View Source
const GongIdentifiersDecls = `
	{{Identifier}} := (&models.{{GeneratedStructName}}{Name: {{GeneratedFieldNameValue}}}).Stage(stage)`
View Source
const GongMetaFieldStructInitStatement = `
	{{Identifier}}.{{GeneratedFieldName}} = ` + `{{GeneratedFieldNameValue}}`
View Source
const GongNumberInitStatement = `
	{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
View Source
const GongPointerFieldInitStatement = `
	{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
View Source
const GongSliceOfPointersFieldInitStatement = `
	{{Identifier}}.{{GeneratedFieldName}} = append({{Identifier}}.{{GeneratedFieldName}}, {{GeneratedFieldNameValue}})`
View Source
const GongStringEnumInitStatement = `
	{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
View Source
const GongStringInitStatement = `
	{{Identifier}}.{{GeneratedFieldName}} = {{GeneratedFieldNameValue}}`
View Source
const GongTimeInitStatement = `` /* 129-byte string literal not displayed */
View Source
const GongUnstageStmt = `
	{{Identifier}}.Unstage(stage)`

Variables

View Source
var GongExtractBool = gong_runtime.ExtractBool
View Source
var GongExtractDate = gong_runtime.ExtractDate
View Source
var GongExtractExpr = gong_runtime.ExtractExpr
View Source
var GongExtractFloat = gong_runtime.ExtractFloat
View Source
var GongExtractInt = gong_runtime.ExtractInt
View Source
var GongExtractString = gong_runtime.ExtractString

Functions

func GetGongstructNameFromPointer

func GetGongstructNameFromPointer(instance GongstructIF) (res string)

func GetPointerToGongstructName

func GetPointerToGongstructName[Type GongstructIF]() (res string)

func GongCompareGongstructByName

func GongCompareGongstructByName[T GongstructPtr](a, b T) int

func GongCopyBranch

func GongCopyBranch[Type Gongstruct](from *Type) (to *Type)

GongCopyBranch stages instance and apply GongCopyBranch 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 GongGenerateReproducibleUUIDv4

func GongGenerateReproducibleUUIDv4(seedStr string, seedInt uint64) string

GongGenerateReproducibleUUIDv4 creates a deterministic UUIDv4 based on a string and a positive integer.

func GongGetAssociationName

func GongGetAssociationName[Type Gongstruct]() *Type

GongGetAssociationName 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 GongGetGongstructNameFromPointer

func GongGetGongstructNameFromPointer(instance GongstructIF) (res string)

func GongGetPointerToGongstructName

func GongGetPointerToGongstructName[Type GongstructIF]() (res string)

GongGetPointerToGongstructName returns the name of the Gongstruct this can be usefull if one want program robust to refactoring

func GongIntToLetters

func GongIntToLetters(number int32) (letters string)

func GongNewInstance

func GongNewInstance[Type GongstructPtr]() (res Type)

GongNewInstance creates a new instance of the Gongstruct

func GongSortGongstructSetByName

func GongSortGongstructSetByName[T GongstructPtr](set map[T]struct{}) (sortedSlice []T)

func GongUnmarshallEnum

func GongUnmarshallEnum[T interface{ FromCodeString(string) error }](
	ptr T,
	valueExpr ast.Expr)

GongUnmarshallEnum handles assignment of enum fields (via SelectorExpr or String fallback)

func GongUnmarshallPointer

func GongUnmarshallPointer[T GongstructPtr](
	ptr *T,
	valueExpr ast.Expr,
	identifierMap map[string]GongstructIF)

GongUnmarshallPointer handles assignment of a single pointer field

func GongUnmarshallSliceOfPointers

func GongUnmarshallSliceOfPointers[T GongstructPtr](
	slice *[]T,
	valueExpr ast.Expr,
	identifierMap map[string]GongstructIF) (err error)

GongUnmarshallSliceOfPointers handles append, slices.Delete, and slices.Insert for slice fields

func NewInstance

func NewInstance[Type GongstructPtr]() (res Type)

Types

type AsSplit

type AsSplit struct {
	Name string

	Direction Direction

	AsSplitAreas []*AsSplitArea

	IsSizeInPixel bool

	IsWithCustomGutterSize bool
	GutterSize             float64
}

func GongCopyBranchAsSplit

func GongCopyBranchAsSplit(mapOrigCopy map[any]any, assplitFrom *AsSplit) (assplitTo *AsSplit)

insertion point for stage branch per struct

func (*AsSplit) GetName

func (assplit *AsSplit) GetName() (res string)

for satisfaction of GongStruct interface

func (*AsSplit) GongAfterCreateFromFront

func (assplit *AsSplit) GongAfterCreateFromFront(stage *Stage)

insertion point

func (*AsSplit) GongAfterDeleteFromFront

func (assplit *AsSplit) GongAfterDeleteFromFront(stage *Stage, front GongstructIF)

func (*AsSplit) GongClean

func (assplit *AsSplit) GongClean(stage *Stage) (modified bool)

insertion point per named struct Clean garbage collect unstaged instances that are referenced by AsSplit

func (*AsSplit) GongCopy

func (assplit *AsSplit) GongCopy() GongstructIF

insertion point per named struct

func (*AsSplit) GongCopyBasicFields

func (from *AsSplit) GongCopyBasicFields(to *AsSplit)

func (*AsSplit) GongDiff

func (assplit *AsSplit) GongDiff(stage *Stage, assplitOther *AsSplit) (diffs []string)

insertion point for diff per struct GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (AsSplit) GongGetAssociationName

func (AsSplit) GongGetAssociationName() any

insertion point for instance with special fields

func (*AsSplit) GongGetFieldHeaders

func (assplit *AsSplit) GongGetFieldHeaders() (res []GongFieldHeader)

insertion point for get fields header method

func (*AsSplit) GongGetFieldValue

func (assplit *AsSplit) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

insertion point for generic get gongstruct field value

func (*AsSplit) GongGetGongstructName

func (assplit *AsSplit) GongGetGongstructName() string

insertion point for generic get gongstruct name

func (*AsSplit) GongGetIdentifier

func (assplit *AsSplit) GongGetIdentifier(stage *Stage) string

GongGetIdentifier returns a unique identifier of the instance in the staging area This identifier is composed of the Gongstruct name and the order of the instance in the staging area It is used to identify instances across sessions insertion point per named struct

func (*AsSplit) GongGetInstanceFromOrder

func (*AsSplit) GongGetInstanceFromOrder(stage *Stage, order uint) any

func (*AsSplit) GongGetInstancesByOrder

func (*AsSplit) GongGetInstancesByOrder(stage *Stage) any

insertion point for stage ops

func (*AsSplit) GongGetInstancesMapByName

func (*AsSplit) GongGetInstancesMapByName(stage *Stage) any

func (*AsSplit) GongGetInstancesSet

func (*AsSplit) GongGetInstancesSet(stage *Stage) any

func (*AsSplit) GongGetOrder

func (assplit *AsSplit) GongGetOrder(stage *Stage) uint

GongGetOrder returns the order of the instance in the staging area This order is set at staging time, and reflects the order of creation of the instances in the staging area It is used when rendering slices of GongstructIF to keep a deterministic order which is important for frontends such as web frontends to avoid unnecessary re-renderings insertion point per named struct

func (*AsSplit) GongGetReferenceIdentifier

func (assplit *AsSplit) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*AsSplit) GongGetReverseFieldOwnerName

func (inst *AsSplit) GongGetReverseFieldOwnerName(stage *Stage, reverseField *GongReverseField) (res string)

insertion point

func (*AsSplit) GongGetReverseFields

func (*AsSplit) GongGetReverseFields() []GongReverseField

insertion point for generic get reverse fields

func (*AsSplit) GongGetUUID

func (assplit *AsSplit) GongGetUUID(stage *Stage) string

insertion point per named struct

func (*AsSplit) GongIsStaged

func (assplit *AsSplit) GongIsStaged(stage *Stage) bool

insertion point for stage per struct

func (*AsSplit) GongMarshallAllFields

func (assplit *AsSplit) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

insertion point for marshall all fields methods

func (*AsSplit) GongMarshallField

func (assplit *AsSplit) GongMarshallField(stage *Stage, fieldName string) (res string)

insertion point for marshall field methods

func (*AsSplit) GongMarshallIdentifier

func (assplit *AsSplit) GongMarshallIdentifier(stage *Stage) string

MarshallIdentifier returns the code to instantiate the instance in a marshalling file insertion point per named struct

func (*AsSplit) GongMarshallUnstaging

func (assplit *AsSplit) GongMarshallUnstaging(stage *Stage) string

insertion point for unstaging

func (*AsSplit) GongNewInstance

func (*AsSplit) GongNewInstance() any

func (*AsSplit) GongOnAfterUpdateFromFront

func (assplit *AsSplit) GongOnAfterUpdateFromFront(stage *Stage, front GongstructIF)

func (*AsSplit) GongReconstructPointersFromInstances

func (reference *AsSplit) GongReconstructPointersFromInstances(stage *Stage)

insertion point for pointer reconstruction from instances

func (*AsSplit) GongReconstructPointersFromReferences

func (reference *AsSplit) GongReconstructPointersFromReferences(stage *Stage, instance *AsSplit)

insertion point for pointer reconstruction from references

func (*AsSplit) GongStageBranch

func (assplit *AsSplit) GongStageBranch(stage *Stage)

insertion point for stage branch per struct

func (*AsSplit) GongUnstageBranch

func (assplit *AsSplit) GongUnstageBranch(stage *Stage)

insertion point for unstage branch per struct

func (*AsSplit) SetName

func (assplit *AsSplit) SetName(name string)

for satisfaction of GongStruct interface

func (*AsSplit) Stage

func (assplit *AsSplit) Stage(stage *Stage) *AsSplit

insertion point for cumulative sub template with model space calls Stage puts assplit to the model stage

func (*AsSplit) StagePreserveOrder

func (assplit *AsSplit) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts assplit to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.AsSplitOrder - update stage.AsSplitOrder accordingly

func (*AsSplit) StageVoid

func (assplit *AsSplit) StageVoid(stage *Stage)

func (*AsSplit) Unstage

func (assplit *AsSplit) Unstage(stage *Stage) *AsSplit

Unstage removes assplit off the model stage

func (*AsSplit) UnstageVoid

func (assplit *AsSplit) UnstageVoid(stage *Stage)

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
	Form     *Form
	Load     *Load
	Markdown *Markdown
	Slider   *Slider
	Split    *Split
	Svg      *Svg
	Table    *Table
	Tone     *Tone
	Tree     *Tree
	Threejs  *Threejs
	Xlsx     *Xlsx

	HasDiv   bool
	DivStyle string // in case of div, the div style
}

func GongCopyBranchAsSplitArea

func GongCopyBranchAsSplitArea(mapOrigCopy map[any]any, assplitareaFrom *AsSplitArea) (assplitareaTo *AsSplitArea)

func (*AsSplitArea) GetName

func (assplitarea *AsSplitArea) GetName() (res string)

for satisfaction of GongStruct interface

func (*AsSplitArea) GongAfterCreateFromFront

func (assplitarea *AsSplitArea) GongAfterCreateFromFront(stage *Stage)

func (*AsSplitArea) GongAfterDeleteFromFront

func (assplitarea *AsSplitArea) GongAfterDeleteFromFront(stage *Stage, front GongstructIF)

func (*AsSplitArea) GongClean

func (assplitarea *AsSplitArea) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by AsSplitArea

func (*AsSplitArea) GongCopy

func (assplitarea *AsSplitArea) GongCopy() GongstructIF

func (*AsSplitArea) GongCopyBasicFields

func (from *AsSplitArea) GongCopyBasicFields(to *AsSplitArea)

func (*AsSplitArea) GongDiff

func (assplitarea *AsSplitArea) GongDiff(stage *Stage, assplitareaOther *AsSplitArea) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (AsSplitArea) GongGetAssociationName

func (AsSplitArea) GongGetAssociationName() any

func (*AsSplitArea) GongGetFieldHeaders

func (assplitarea *AsSplitArea) GongGetFieldHeaders() (res []GongFieldHeader)

func (*AsSplitArea) GongGetFieldValue

func (assplitarea *AsSplitArea) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*AsSplitArea) GongGetGongstructName

func (assplitarea *AsSplitArea) GongGetGongstructName() string

func (*AsSplitArea) GongGetIdentifier

func (assplitarea *AsSplitArea) GongGetIdentifier(stage *Stage) string

func (*AsSplitArea) GongGetInstanceFromOrder

func (*AsSplitArea) GongGetInstanceFromOrder(stage *Stage, order uint) any

func (*AsSplitArea) GongGetInstancesByOrder

func (*AsSplitArea) GongGetInstancesByOrder(stage *Stage) any

func (*AsSplitArea) GongGetInstancesMapByName

func (*AsSplitArea) GongGetInstancesMapByName(stage *Stage) any

func (*AsSplitArea) GongGetInstancesSet

func (*AsSplitArea) GongGetInstancesSet(stage *Stage) any

func (*AsSplitArea) GongGetOrder

func (assplitarea *AsSplitArea) GongGetOrder(stage *Stage) uint

func (*AsSplitArea) GongGetReferenceIdentifier

func (assplitarea *AsSplitArea) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*AsSplitArea) GongGetReverseFieldOwnerName

func (inst *AsSplitArea) GongGetReverseFieldOwnerName(stage *Stage, reverseField *GongReverseField) (res string)

func (*AsSplitArea) GongGetReverseFields

func (*AsSplitArea) GongGetReverseFields() []GongReverseField

func (*AsSplitArea) GongGetUUID

func (assplitarea *AsSplitArea) GongGetUUID(stage *Stage) string

func (*AsSplitArea) GongIsStaged

func (assplitarea *AsSplitArea) GongIsStaged(stage *Stage) bool

func (*AsSplitArea) GongMarshallAllFields

func (assplitarea *AsSplitArea) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*AsSplitArea) GongMarshallField

func (assplitarea *AsSplitArea) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*AsSplitArea) GongMarshallIdentifier

func (assplitarea *AsSplitArea) GongMarshallIdentifier(stage *Stage) string

func (*AsSplitArea) GongMarshallUnstaging

func (assplitarea *AsSplitArea) GongMarshallUnstaging(stage *Stage) string

func (*AsSplitArea) GongNewInstance

func (*AsSplitArea) GongNewInstance() any

func (*AsSplitArea) GongOnAfterUpdateFromFront

func (assplitarea *AsSplitArea) GongOnAfterUpdateFromFront(stage *Stage, front GongstructIF)

func (*AsSplitArea) GongReconstructPointersFromInstances

func (reference *AsSplitArea) GongReconstructPointersFromInstances(stage *Stage)

func (*AsSplitArea) GongReconstructPointersFromReferences

func (reference *AsSplitArea) GongReconstructPointersFromReferences(stage *Stage, instance *AsSplitArea)

func (*AsSplitArea) GongStageBranch

func (assplitarea *AsSplitArea) GongStageBranch(stage *Stage)

func (*AsSplitArea) GongUnstageBranch

func (assplitarea *AsSplitArea) GongUnstageBranch(stage *Stage)

func (*AsSplitArea) SetName

func (assplitarea *AsSplitArea) SetName(name 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) StagePreserveOrder

func (assplitarea *AsSplitArea) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts assplitarea to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.AsSplitAreaOrder - update stage.AsSplitAreaOrder accordingly

func (*AsSplitArea) StageVoid

func (assplitarea *AsSplitArea) StageVoid(stage *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 AsSplitAreaUnmarshaller

type AsSplitAreaUnmarshaller struct{}

func (*AsSplitAreaUnmarshaller) Initialize

func (u *AsSplitAreaUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*AsSplitAreaUnmarshaller) UnmarshallField

func (u *AsSplitAreaUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type AsSplitArea_WOP

type AsSplitArea_WOP struct {
	Name string

	ShowNameInHeader bool

	Size float64

	IsAny bool

	HasDiv bool

	DivStyle string
}

type AsSplitUnmarshaller

type AsSplitUnmarshaller struct{}

insertion point per named struct

func (*AsSplitUnmarshaller) Initialize

func (u *AsSplitUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*AsSplitUnmarshaller) UnmarshallField

func (u *AsSplitUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type AsSplit_WOP

type AsSplit_WOP struct {
	Name string

	Direction Direction

	IsSizeInPixel bool

	IsWithCustomGutterSize bool

	GutterSize float64
}

insertion point

type BackRepoInterface

type BackRepoInterface = GongBackRepoInterface

type Button

type Button struct {
	Name      string // name of the stack
	StackName string
}

func GongCopyBranchButton

func GongCopyBranchButton(mapOrigCopy map[any]any, buttonFrom *Button) (buttonTo *Button)

func (*Button) GetName

func (button *Button) GetName() (res string)

for satisfaction of GongStruct interface

func (*Button) GongAfterCreateFromFront

func (button *Button) GongAfterCreateFromFront(stage *Stage)

func (*Button) GongAfterDeleteFromFront

func (button *Button) GongAfterDeleteFromFront(stage *Stage, front GongstructIF)

func (*Button) GongCopy

func (button *Button) GongCopy() GongstructIF

func (*Button) GongCopyBasicFields

func (from *Button) GongCopyBasicFields(to *Button)

func (*Button) GongDiff

func (button *Button) GongDiff(stage *Stage, buttonOther *Button) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (Button) GongGetAssociationName

func (Button) GongGetAssociationName() any

func (*Button) GongGetFieldHeaders

func (button *Button) GongGetFieldHeaders() (res []GongFieldHeader)

func (*Button) GongGetFieldValue

func (button *Button) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*Button) GongGetGongstructName

func (button *Button) GongGetGongstructName() string

func (*Button) GongGetIdentifier

func (button *Button) GongGetIdentifier(stage *Stage) string

func (*Button) GongGetInstanceFromOrder

func (*Button) GongGetInstanceFromOrder(stage *Stage, order uint) any

func (*Button) GongGetInstancesByOrder

func (*Button) GongGetInstancesByOrder(stage *Stage) any

func (*Button) GongGetInstancesMapByName

func (*Button) GongGetInstancesMapByName(stage *Stage) any

func (*Button) GongGetInstancesSet

func (*Button) GongGetInstancesSet(stage *Stage) any

func (*Button) GongGetOrder

func (button *Button) GongGetOrder(stage *Stage) uint

func (*Button) GongGetReferenceIdentifier

func (button *Button) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*Button) GongGetReverseFieldOwnerName

func (inst *Button) GongGetReverseFieldOwnerName(stage *Stage, reverseField *GongReverseField) (res string)

func (*Button) GongGetReverseFields

func (*Button) GongGetReverseFields() []GongReverseField

func (*Button) GongGetUUID

func (button *Button) GongGetUUID(stage *Stage) string

func (*Button) GongIsStaged

func (button *Button) GongIsStaged(stage *Stage) bool

func (*Button) GongMarshallAllFields

func (button *Button) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*Button) GongMarshallField

func (button *Button) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*Button) GongMarshallIdentifier

func (button *Button) GongMarshallIdentifier(stage *Stage) string

func (*Button) GongMarshallUnstaging

func (button *Button) GongMarshallUnstaging(stage *Stage) string

func (*Button) GongNewInstance

func (*Button) GongNewInstance() any

func (*Button) GongOnAfterUpdateFromFront

func (button *Button) GongOnAfterUpdateFromFront(stage *Stage, front GongstructIF)

func (*Button) GongReconstructPointersFromInstances

func (reference *Button) GongReconstructPointersFromInstances(stage *Stage)

func (*Button) GongReconstructPointersFromReferences

func (reference *Button) GongReconstructPointersFromReferences(stage *Stage, instance *Button)

func (*Button) GongStageBranch

func (button *Button) GongStageBranch(stage *Stage)

func (*Button) GongUnstageBranch

func (button *Button) GongUnstageBranch(stage *Stage)

func (*Button) SetName

func (button *Button) SetName(name string)

for satisfaction of GongStruct interface

func (*Button) Stage

func (button *Button) Stage(stage *Stage) *Button

Stage puts button to the model stage

func (*Button) StagePreserveOrder

func (button *Button) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts button to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.ButtonOrder - update stage.ButtonOrder accordingly

func (*Button) StageVoid

func (button *Button) StageVoid(stage *Stage)

func (*Button) Unstage

func (button *Button) Unstage(stage *Stage) *Button

Unstage removes button off the model stage

func (*Button) UnstageVoid

func (button *Button) UnstageVoid(stage *Stage)

UnstageVoid removes button off the model stage

type ButtonUnmarshaller

type ButtonUnmarshaller struct{}

func (*ButtonUnmarshaller) Initialize

func (u *ButtonUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*ButtonUnmarshaller) UnmarshallField

func (u *ButtonUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type Button_WOP

type Button_WOP struct {
	Name string

	StackName string
}

type Cursor

type Cursor struct {
	Name      string // name of the stack
	StackName string
	Style     string
}

func GongCopyBranchCursor

func GongCopyBranchCursor(mapOrigCopy map[any]any, cursorFrom *Cursor) (cursorTo *Cursor)

func (*Cursor) GetName

func (cursor *Cursor) GetName() (res string)

for satisfaction of GongStruct interface

func (*Cursor) GongAfterCreateFromFront

func (cursor *Cursor) GongAfterCreateFromFront(stage *Stage)

func (*Cursor) GongAfterDeleteFromFront

func (cursor *Cursor) GongAfterDeleteFromFront(stage *Stage, front GongstructIF)

func (*Cursor) GongCopy

func (cursor *Cursor) GongCopy() GongstructIF

func (*Cursor) GongCopyBasicFields

func (from *Cursor) GongCopyBasicFields(to *Cursor)

func (*Cursor) GongDiff

func (cursor *Cursor) GongDiff(stage *Stage, cursorOther *Cursor) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (Cursor) GongGetAssociationName

func (Cursor) GongGetAssociationName() any

func (*Cursor) GongGetFieldHeaders

func (cursor *Cursor) GongGetFieldHeaders() (res []GongFieldHeader)

func (*Cursor) GongGetFieldValue

func (cursor *Cursor) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*Cursor) GongGetGongstructName

func (cursor *Cursor) GongGetGongstructName() string

func (*Cursor) GongGetIdentifier

func (cursor *Cursor) GongGetIdentifier(stage *Stage) string

func (*Cursor) GongGetInstanceFromOrder

func (*Cursor) GongGetInstanceFromOrder(stage *Stage, order uint) any

func (*Cursor) GongGetInstancesByOrder

func (*Cursor) GongGetInstancesByOrder(stage *Stage) any

func (*Cursor) GongGetInstancesMapByName

func (*Cursor) GongGetInstancesMapByName(stage *Stage) any

func (*Cursor) GongGetInstancesSet

func (*Cursor) GongGetInstancesSet(stage *Stage) any

func (*Cursor) GongGetOrder

func (cursor *Cursor) GongGetOrder(stage *Stage) uint

func (*Cursor) GongGetReferenceIdentifier

func (cursor *Cursor) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*Cursor) GongGetReverseFieldOwnerName

func (inst *Cursor) GongGetReverseFieldOwnerName(stage *Stage, reverseField *GongReverseField) (res string)

func (*Cursor) GongGetReverseFields

func (*Cursor) GongGetReverseFields() []GongReverseField

func (*Cursor) GongGetUUID

func (cursor *Cursor) GongGetUUID(stage *Stage) string

func (*Cursor) GongIsStaged

func (cursor *Cursor) GongIsStaged(stage *Stage) bool

func (*Cursor) GongMarshallAllFields

func (cursor *Cursor) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*Cursor) GongMarshallField

func (cursor *Cursor) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*Cursor) GongMarshallIdentifier

func (cursor *Cursor) GongMarshallIdentifier(stage *Stage) string

func (*Cursor) GongMarshallUnstaging

func (cursor *Cursor) GongMarshallUnstaging(stage *Stage) string

func (*Cursor) GongNewInstance

func (*Cursor) GongNewInstance() any

func (*Cursor) GongOnAfterUpdateFromFront

func (cursor *Cursor) GongOnAfterUpdateFromFront(stage *Stage, front GongstructIF)

func (*Cursor) GongReconstructPointersFromInstances

func (reference *Cursor) GongReconstructPointersFromInstances(stage *Stage)

func (*Cursor) GongReconstructPointersFromReferences

func (reference *Cursor) GongReconstructPointersFromReferences(stage *Stage, instance *Cursor)

func (*Cursor) GongStageBranch

func (cursor *Cursor) GongStageBranch(stage *Stage)

func (*Cursor) GongUnstageBranch

func (cursor *Cursor) GongUnstageBranch(stage *Stage)

func (*Cursor) SetName

func (cursor *Cursor) SetName(name string)

for satisfaction of GongStruct interface

func (*Cursor) Stage

func (cursor *Cursor) Stage(stage *Stage) *Cursor

Stage puts cursor to the model stage

func (*Cursor) StagePreserveOrder

func (cursor *Cursor) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts cursor to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.CursorOrder - update stage.CursorOrder accordingly

func (*Cursor) StageVoid

func (cursor *Cursor) StageVoid(stage *Stage)

func (*Cursor) Unstage

func (cursor *Cursor) Unstage(stage *Stage) *Cursor

Unstage removes cursor off the model stage

func (*Cursor) UnstageVoid

func (cursor *Cursor) UnstageVoid(stage *Stage)

UnstageVoid removes cursor off the model stage

type CursorUnmarshaller

type CursorUnmarshaller struct{}

func (*CursorUnmarshaller) Initialize

func (u *CursorUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*CursorUnmarshaller) UnmarshallField

func (u *CursorUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type Cursor_WOP

type Cursor_WOP struct {
	Name string

	StackName string

	Style string
}

type Direction

type Direction string
const (
	Vertical   Direction = "vertical"
	Horizontal Direction = "horizontal"
)

func (Direction) CodeValues

func (direction Direction) CodeValues() (res []string)

func (Direction) Codes

func (direction Direction) Codes() (res []string)

func (*Direction) FromCodeString

func (direction *Direction) FromCodeString(input string) (err error)

func (*Direction) FromString

func (direction *Direction) FromString(input string) (err error)

func (*Direction) ToCodeString

func (direction *Direction) ToCodeString() (res string)

func (Direction) ToString

func (direction Direction) ToString() (res string)

insertion point of enum utility functions Utility function for Direction 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 ExcelizeTabulator

type ExcelizeTabulator = GongExcelizeTabulator

type FavIcon

type FavIcon struct {
	Name string

	//gong:width 600 gong:height 300
	SVG string
}

You can configure the browser tab title and favicon dynamically in Angular creates one instance and it will set the browser accordingly

func GongCopyBranchFavIcon

func GongCopyBranchFavIcon(mapOrigCopy map[any]any, faviconFrom *FavIcon) (faviconTo *FavIcon)

func (*FavIcon) GetName

func (favicon *FavIcon) GetName() (res string)

for satisfaction of GongStruct interface

func (*FavIcon) GongAfterCreateFromFront

func (favicon *FavIcon) GongAfterCreateFromFront(stage *Stage)

func (*FavIcon) GongAfterDeleteFromFront

func (favicon *FavIcon) GongAfterDeleteFromFront(stage *Stage, front GongstructIF)

func (*FavIcon) GongCopy

func (favicon *FavIcon) GongCopy() GongstructIF

func (*FavIcon) GongCopyBasicFields

func (from *FavIcon) GongCopyBasicFields(to *FavIcon)

func (*FavIcon) GongDiff

func (favicon *FavIcon) GongDiff(stage *Stage, faviconOther *FavIcon) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (FavIcon) GongGetAssociationName

func (FavIcon) GongGetAssociationName() any

func (*FavIcon) GongGetFieldHeaders

func (favicon *FavIcon) GongGetFieldHeaders() (res []GongFieldHeader)

func (*FavIcon) GongGetFieldValue

func (favicon *FavIcon) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*FavIcon) GongGetGongstructName

func (favicon *FavIcon) GongGetGongstructName() string

func (*FavIcon) GongGetIdentifier

func (favicon *FavIcon) GongGetIdentifier(stage *Stage) string

func (*FavIcon) GongGetInstanceFromOrder

func (*FavIcon) GongGetInstanceFromOrder(stage *Stage, order uint) any

func (*FavIcon) GongGetInstancesByOrder

func (*FavIcon) GongGetInstancesByOrder(stage *Stage) any

func (*FavIcon) GongGetInstancesMapByName

func (*FavIcon) GongGetInstancesMapByName(stage *Stage) any

func (*FavIcon) GongGetInstancesSet

func (*FavIcon) GongGetInstancesSet(stage *Stage) any

func (*FavIcon) GongGetOrder

func (favicon *FavIcon) GongGetOrder(stage *Stage) uint

func (*FavIcon) GongGetReferenceIdentifier

func (favicon *FavIcon) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*FavIcon) GongGetReverseFieldOwnerName

func (inst *FavIcon) GongGetReverseFieldOwnerName(stage *Stage, reverseField *GongReverseField) (res string)

func (*FavIcon) GongGetReverseFields

func (*FavIcon) GongGetReverseFields() []GongReverseField

func (*FavIcon) GongGetUUID

func (favicon *FavIcon) GongGetUUID(stage *Stage) string

func (*FavIcon) GongIsStaged

func (favicon *FavIcon) GongIsStaged(stage *Stage) bool

func (*FavIcon) GongMarshallAllFields

func (favicon *FavIcon) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*FavIcon) GongMarshallField

func (favicon *FavIcon) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*FavIcon) GongMarshallIdentifier

func (favicon *FavIcon) GongMarshallIdentifier(stage *Stage) string

func (*FavIcon) GongMarshallUnstaging

func (favicon *FavIcon) GongMarshallUnstaging(stage *Stage) string

func (*FavIcon) GongNewInstance

func (*FavIcon) GongNewInstance() any

func (*FavIcon) GongOnAfterUpdateFromFront

func (favicon *FavIcon) GongOnAfterUpdateFromFront(stage *Stage, front GongstructIF)

func (*FavIcon) GongReconstructPointersFromInstances

func (reference *FavIcon) GongReconstructPointersFromInstances(stage *Stage)

func (*FavIcon) GongReconstructPointersFromReferences

func (reference *FavIcon) GongReconstructPointersFromReferences(stage *Stage, instance *FavIcon)

func (*FavIcon) GongStageBranch

func (favicon *FavIcon) GongStageBranch(stage *Stage)

func (*FavIcon) GongUnstageBranch

func (favicon *FavIcon) GongUnstageBranch(stage *Stage)

func (*FavIcon) SetName

func (favicon *FavIcon) SetName(name string)

for satisfaction of GongStruct interface

func (*FavIcon) Stage

func (favicon *FavIcon) Stage(stage *Stage) *FavIcon

Stage puts favicon to the model stage

func (*FavIcon) StagePreserveOrder

func (favicon *FavIcon) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts favicon to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.FavIconOrder - update stage.FavIconOrder accordingly

func (*FavIcon) StageVoid

func (favicon *FavIcon) StageVoid(stage *Stage)

func (*FavIcon) Unstage

func (favicon *FavIcon) Unstage(stage *Stage) *FavIcon

Unstage removes favicon off the model stage

func (*FavIcon) UnstageVoid

func (favicon *FavIcon) UnstageVoid(stage *Stage)

UnstageVoid removes favicon off the model stage

type FavIconUnmarshaller

type FavIconUnmarshaller struct{}

func (*FavIconUnmarshaller) Initialize

func (u *FavIconUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*FavIconUnmarshaller) UnmarshallField

func (u *FavIconUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type FavIcon_WOP

type FavIcon_WOP struct {
	Name string

	SVG string
}

type Form

type Form struct {
	Name      string // name of the stack
	StackName string
}

func GongCopyBranchForm

func GongCopyBranchForm(mapOrigCopy map[any]any, formFrom *Form) (formTo *Form)

func (*Form) GetName

func (form *Form) GetName() (res string)

for satisfaction of GongStruct interface

func (*Form) GongAfterCreateFromFront

func (form *Form) GongAfterCreateFromFront(stage *Stage)

func (*Form) GongAfterDeleteFromFront

func (form *Form) GongAfterDeleteFromFront(stage *Stage, front GongstructIF)

func (*Form) GongCopy

func (form *Form) GongCopy() GongstructIF

func (*Form) GongCopyBasicFields

func (from *Form) GongCopyBasicFields(to *Form)

func (*Form) GongDiff

func (form *Form) GongDiff(stage *Stage, formOther *Form) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (Form) GongGetAssociationName

func (Form) GongGetAssociationName() any

func (*Form) GongGetFieldHeaders

func (form *Form) GongGetFieldHeaders() (res []GongFieldHeader)

func (*Form) GongGetFieldValue

func (form *Form) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*Form) GongGetGongstructName

func (form *Form) GongGetGongstructName() string

func (*Form) GongGetIdentifier

func (form *Form) GongGetIdentifier(stage *Stage) string

func (*Form) GongGetInstanceFromOrder

func (*Form) GongGetInstanceFromOrder(stage *Stage, order uint) any

func (*Form) GongGetInstancesByOrder

func (*Form) GongGetInstancesByOrder(stage *Stage) any

func (*Form) GongGetInstancesMapByName

func (*Form) GongGetInstancesMapByName(stage *Stage) any

func (*Form) GongGetInstancesSet

func (*Form) GongGetInstancesSet(stage *Stage) any

func (*Form) GongGetOrder

func (form *Form) GongGetOrder(stage *Stage) uint

func (*Form) GongGetReferenceIdentifier

func (form *Form) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*Form) GongGetReverseFieldOwnerName

func (inst *Form) GongGetReverseFieldOwnerName(stage *Stage, reverseField *GongReverseField) (res string)

func (*Form) GongGetReverseFields

func (*Form) GongGetReverseFields() []GongReverseField

func (*Form) GongGetUUID

func (form *Form) GongGetUUID(stage *Stage) string

func (*Form) GongIsStaged

func (form *Form) GongIsStaged(stage *Stage) bool

func (*Form) GongMarshallAllFields

func (form *Form) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*Form) GongMarshallField

func (form *Form) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*Form) GongMarshallIdentifier

func (form *Form) GongMarshallIdentifier(stage *Stage) string

func (*Form) GongMarshallUnstaging

func (form *Form) GongMarshallUnstaging(stage *Stage) string

func (*Form) GongNewInstance

func (*Form) GongNewInstance() any

func (*Form) GongOnAfterUpdateFromFront

func (form *Form) GongOnAfterUpdateFromFront(stage *Stage, front GongstructIF)

func (*Form) GongReconstructPointersFromInstances

func (reference *Form) GongReconstructPointersFromInstances(stage *Stage)

func (*Form) GongReconstructPointersFromReferences

func (reference *Form) GongReconstructPointersFromReferences(stage *Stage, instance *Form)

func (*Form) GongStageBranch

func (form *Form) GongStageBranch(stage *Stage)

func (*Form) GongUnstageBranch

func (form *Form) GongUnstageBranch(stage *Stage)

func (*Form) SetName

func (form *Form) SetName(name string)

for satisfaction of GongStruct interface

func (*Form) Stage

func (form *Form) Stage(stage *Stage) *Form

Stage puts form to the model stage

func (*Form) StagePreserveOrder

func (form *Form) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts form to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.FormOrder - update stage.FormOrder accordingly

func (*Form) StageVoid

func (form *Form) StageVoid(stage *Stage)

func (*Form) Unstage

func (form *Form) Unstage(stage *Stage) *Form

Unstage removes form off the model stage

func (*Form) UnstageVoid

func (form *Form) UnstageVoid(stage *Stage)

UnstageVoid removes form off the model stage

type FormUnmarshaller

type FormUnmarshaller struct{}

func (*FormUnmarshaller) Initialize

func (u *FormUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*FormUnmarshaller) UnmarshallField

func (u *FormUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type Form_WOP

type Form_WOP struct {
	Name string

	StackName string
}

type GONG__ExpressionType

type GONG__ExpressionType = gong_runtime.GONG__ExpressionType

swagger:ignore

type GONG__Identifier

type GONG__Identifier struct {
	Ident string
	Type  GONG__ExpressionType
}

type GongBackRepoInterface

type GongBackRepoInterface 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)
	GetLastCommitFromBackNb() uint
	GetLastPushFromFrontNb() uint
}

type GongCleaner

type GongCleaner interface {
	GongClean(stage *Stage) (modified bool)
}

type GongEnumIntPointer

type GongEnumIntPointer interface {
	//insertion point for pointers to enum int types
	FromCodeString(input string) (err error)
}

type GongEnumStringPointer

type GongEnumStringPointer interface {
	FromCodeString(input string) (err error)
}

type GongExcelizeTabulator

type GongExcelizeTabulator struct {
	// contains filtered or unexported fields
}

func (*GongExcelizeTabulator) AddCell

func (tab *GongExcelizeTabulator) AddCell(sheetName string, rowId, columnIndex int, value string)

func (*GongExcelizeTabulator) AddRow

func (tab *GongExcelizeTabulator) AddRow(sheetName string) (rowId int)

func (*GongExcelizeTabulator) AddSheet

func (tab *GongExcelizeTabulator) AddSheet(sheetName string)

func (*GongExcelizeTabulator) SetExcelizeFile

func (tab *GongExcelizeTabulator) SetExcelizeFile(f *excelize.File)

type GongFieldHeader

type GongFieldHeader struct {
	Name string
	GongFieldValueType
	TargetGongstructName string
}

func GetFieldsFromPointer

func GetFieldsFromPointer[Type GongstructPtr]() (res []GongFieldHeader)

func GongGetFieldsFromPointer

func GongGetFieldsFromPointer[Type GongstructPtr]() (res []GongFieldHeader)

GongGetFieldsFromPointer return the array of the fields

type GongFieldValue

type GongFieldValue struct {
	GongFieldValueType
	// contains filtered or unexported fields
}

func GetFieldStringValueFromPointer

func GetFieldStringValueFromPointer(instance GongstructIF, fieldName string, stage *Stage) (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"
	GongFieldValueTypeIntDuration     GongFieldValueType = "GongFieldValueTypeIntDuration"
	GongFieldValueTypeFloat           GongFieldValueType = "GongFieldValueTypeFloat"
	GongFieldValueTypeBool            GongFieldValueType = "GongFieldValueTypeBool"
	GongFieldValueTypeString          GongFieldValueType = "GongFieldValueTypeString"
	GongFieldValueTypeDate            GongFieldValueType = "GongFieldValueTypeDate"
	GongFieldValueTypeBasicKind       GongFieldValueType = "GongFieldValueTypeBasicKind"
	GongFieldValueTypePointer         GongFieldValueType = "GongFieldValueTypePointer"
	GongFieldValueTypeSliceOfPointers GongFieldValueType = "GongFieldValueTypeSliceOfPointers"
)

type GongMarshallingMode

type GongMarshallingMode = gong_runtime.GongMarshallingMode

type GongModelUnmarshaller

type GongModelUnmarshaller interface {
	// Initialize creates the struct, stages it, and returns the pointer as 'any'
	Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

	// UnmarshallField sets a field's value based on the AST expression
	UnmarshallField(stage *Stage, instance GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error
}

GongModelUnmarshaller abstracts the logic for setting fields on a staged instance

type GongNodeIF

type GongNodeIF any

type GongOnAfterCreateInterface

type GongOnAfterCreateInterface[Type Gongstruct] interface {
	OnAfterCreate(stage *Stage,
		instance *Type)
}

GongOnAfterCreateInterface callback when an instance is updated from the front

type GongOnAfterDeleteInterface

type GongOnAfterDeleteInterface[Type Gongstruct] interface {
	OnAfterDelete(stage *Stage,
		staged, front *Type)
}

GongOnAfterDeleteInterface callback when an instance is updated from the front

type GongOnAfterUpdateInterface

type GongOnAfterUpdateInterface[Type Gongstruct] interface {
	OnAfterUpdate(stage *Stage, old, new *Type)
}

GongOnAfterUpdateInterface callback when an instance is updated from the front

type GongOnInitCommitInterface

type GongOnInitCommitInterface interface {
	BeforeCommit(stage *Stage)
}

type GongProbeIF

type GongProbeIF interface {
	Refresh()
	GetDataEditor() *AsSplit
	GetDiagramEditor() *AsSplitArea
	FillUpFormFromGongstruct(instance any, formName string)
	AddNotification(date time.Time, message string)
	CommitNotificationTable()
	ResetNotifications()
	AddCommitNavigationNode(appendChildrenNodeFunc func(GongNodeIF))
	RefreshNavigationTree()
}

for the split package, we define a ProbeIF interface (that is never implemented by the split package) otherwise, the split package cannot refer to the main gong package

type GongReverseField

type GongReverseField struct {
	GongstructName string
	Fieldname      string
}

func GetReverseFields

func GetReverseFields[Type GongstructIF]() (res []GongReverseField)

func GongGetReverseFields

func GongGetReverseFields[Type GongstructIF]() (res []GongReverseField)

type GongStage

type GongStage = Stage

type GongTabulator

type GongTabulator interface {
	AddSheet(sheetName string)
	AddRow(sheetName string) int
	AddCell(sheetName string, rowId, columnIndex int, value string)
}

GongTabulator is an interface for writing to a table strings

type Gong__MouseEvent

type Gong__MouseEvent struct {
	ShiftKey bool
}

type Gongstruct

type Gongstruct interface {
	GongGetAssociationName() any
}

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 GongstructBasicField

type GongstructBasicField interface {
	int | float64 | bool | string | time.Time | time.Duration
}

type GongstructDiffable

type GongstructDiffable[T any] interface {
	GongstructPtr
	GongMarshallIdentifier(stage *Stage) string
	GongMarshallUnstaging(stage *Stage) string
	GongMarshallAllFields(stage *Stage) (string, string)
	GongReconstructPointersFromInstances(stage *Stage)
	GongDiff(stage *Stage, other T) []string
}

type GongstructEnumIntField

type GongstructEnumIntField interface {
	int
	Codes() []string
	CodeValues() []int
}

type GongstructEnumStringField

type GongstructEnumStringField interface {
	Codes() []string
	CodeValues() []string
	ToString() string
}

type GongstructIF

type GongstructIF interface {
	GetName() string
	SetName(string)
	StageVoid(*Stage)
	UnstageVoid(stage *Stage)
	GongGetFieldHeaders() []GongFieldHeader
	GongGetFieldValue(fieldName string, stage *Stage) GongFieldValue
	GongGetGongstructName() string
	GongGetOrder(stage *Stage) uint
	GongGetReferenceIdentifier(stage *Stage) string
	GongGetIdentifier(stage *Stage) string
	GongCopy() GongstructIF
	GongGetReverseFieldOwnerName(stage *Stage, reverseField *GongReverseField) string
	GongGetUUID(stage *Stage) string
	GongAfterCreateFromFront(stage *Stage)
	GongOnAfterUpdateFromFront(stage *Stage, front GongstructIF)
	GongAfterDeleteFromFront(stage *Stage, front GongstructIF)
	GongIsStaged(stage *Stage) bool
	GongStageBranch(stage *Stage)
	GongUnstageBranch(stage *Stage)

	GongGetInstancesByOrder(stage *Stage) any
	GongGetInstanceFromOrder(stage *Stage, order uint) any
	GongGetInstancesMapByName(stage *Stage) any
	GongGetInstancesSet(stage *Stage) any
	GongNewInstance() any
	GongGetReverseFields() []GongReverseField
}

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

func GongInitialize

func GongInitialize[P interface {
	GongstructIF
	StagePreserveOrder(stage *Stage, order uint)
}](instance P, stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

GongInitialize initializes a staged instance, sets its name, and stages it

type GongstructPtr

type GongstructPtr interface {
	GongstructIF
	comparable
}

type GongtructBasicField

type GongtructBasicField = GongstructBasicField

type Load

type Load struct {
	Name      string // name of the stack
	StackName string
}

func GongCopyBranchLoad

func GongCopyBranchLoad(mapOrigCopy map[any]any, loadFrom *Load) (loadTo *Load)

func (*Load) GetName

func (load *Load) GetName() (res string)

for satisfaction of GongStruct interface

func (*Load) GongAfterCreateFromFront

func (load *Load) GongAfterCreateFromFront(stage *Stage)

func (*Load) GongAfterDeleteFromFront

func (load *Load) GongAfterDeleteFromFront(stage *Stage, front GongstructIF)

func (*Load) GongCopy

func (load *Load) GongCopy() GongstructIF

func (*Load) GongCopyBasicFields

func (from *Load) GongCopyBasicFields(to *Load)

func (*Load) GongDiff

func (load *Load) GongDiff(stage *Stage, loadOther *Load) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (Load) GongGetAssociationName

func (Load) GongGetAssociationName() any

func (*Load) GongGetFieldHeaders

func (load *Load) GongGetFieldHeaders() (res []GongFieldHeader)

func (*Load) GongGetFieldValue

func (load *Load) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*Load) GongGetGongstructName

func (load *Load) GongGetGongstructName() string

func (*Load) GongGetIdentifier

func (load *Load) GongGetIdentifier(stage *Stage) string

func (*Load) GongGetInstanceFromOrder

func (*Load) GongGetInstanceFromOrder(stage *Stage, order uint) any

func (*Load) GongGetInstancesByOrder

func (*Load) GongGetInstancesByOrder(stage *Stage) any

func (*Load) GongGetInstancesMapByName

func (*Load) GongGetInstancesMapByName(stage *Stage) any

func (*Load) GongGetInstancesSet

func (*Load) GongGetInstancesSet(stage *Stage) any

func (*Load) GongGetOrder

func (load *Load) GongGetOrder(stage *Stage) uint

func (*Load) GongGetReferenceIdentifier

func (load *Load) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*Load) GongGetReverseFieldOwnerName

func (inst *Load) GongGetReverseFieldOwnerName(stage *Stage, reverseField *GongReverseField) (res string)

func (*Load) GongGetReverseFields

func (*Load) GongGetReverseFields() []GongReverseField

func (*Load) GongGetUUID

func (load *Load) GongGetUUID(stage *Stage) string

func (*Load) GongIsStaged

func (load *Load) GongIsStaged(stage *Stage) bool

func (*Load) GongMarshallAllFields

func (load *Load) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*Load) GongMarshallField

func (load *Load) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*Load) GongMarshallIdentifier

func (load *Load) GongMarshallIdentifier(stage *Stage) string

func (*Load) GongMarshallUnstaging

func (load *Load) GongMarshallUnstaging(stage *Stage) string

func (*Load) GongNewInstance

func (*Load) GongNewInstance() any

func (*Load) GongOnAfterUpdateFromFront

func (load *Load) GongOnAfterUpdateFromFront(stage *Stage, front GongstructIF)

func (*Load) GongReconstructPointersFromInstances

func (reference *Load) GongReconstructPointersFromInstances(stage *Stage)

func (*Load) GongReconstructPointersFromReferences

func (reference *Load) GongReconstructPointersFromReferences(stage *Stage, instance *Load)

func (*Load) GongStageBranch

func (load *Load) GongStageBranch(stage *Stage)

func (*Load) GongUnstageBranch

func (load *Load) GongUnstageBranch(stage *Stage)

func (*Load) SetName

func (load *Load) SetName(name string)

for satisfaction of GongStruct interface

func (*Load) Stage

func (load *Load) Stage(stage *Stage) *Load

Stage puts load to the model stage

func (*Load) StagePreserveOrder

func (load *Load) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts load to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.LoadOrder - update stage.LoadOrder accordingly

func (*Load) StageVoid

func (load *Load) StageVoid(stage *Stage)

func (*Load) Unstage

func (load *Load) Unstage(stage *Stage) *Load

Unstage removes load off the model stage

func (*Load) UnstageVoid

func (load *Load) UnstageVoid(stage *Stage)

UnstageVoid removes load off the model stage

type LoadUnmarshaller

type LoadUnmarshaller struct{}

func (*LoadUnmarshaller) Initialize

func (u *LoadUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*LoadUnmarshaller) UnmarshallField

func (u *LoadUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type Load_WOP

type Load_WOP struct {
	Name string

	StackName string
}

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 GongCopyBranchLogoOnTheLeft

func GongCopyBranchLogoOnTheLeft(mapOrigCopy map[any]any, logoontheleftFrom *LogoOnTheLeft) (logoontheleftTo *LogoOnTheLeft)

func (*LogoOnTheLeft) GetName

func (logoontheleft *LogoOnTheLeft) GetName() (res string)

for satisfaction of GongStruct interface

func (*LogoOnTheLeft) GongAfterCreateFromFront

func (logoontheleft *LogoOnTheLeft) GongAfterCreateFromFront(stage *Stage)

func (*LogoOnTheLeft) GongAfterDeleteFromFront

func (logoontheleft *LogoOnTheLeft) GongAfterDeleteFromFront(stage *Stage, front GongstructIF)

func (*LogoOnTheLeft) GongCopy

func (logoontheleft *LogoOnTheLeft) GongCopy() GongstructIF

func (*LogoOnTheLeft) GongCopyBasicFields

func (from *LogoOnTheLeft) GongCopyBasicFields(to *LogoOnTheLeft)

func (*LogoOnTheLeft) GongDiff

func (logoontheleft *LogoOnTheLeft) GongDiff(stage *Stage, logoontheleftOther *LogoOnTheLeft) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (LogoOnTheLeft) GongGetAssociationName

func (LogoOnTheLeft) GongGetAssociationName() any

func (*LogoOnTheLeft) GongGetFieldHeaders

func (logoontheleft *LogoOnTheLeft) GongGetFieldHeaders() (res []GongFieldHeader)

func (*LogoOnTheLeft) GongGetFieldValue

func (logoontheleft *LogoOnTheLeft) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*LogoOnTheLeft) GongGetGongstructName

func (logoontheleft *LogoOnTheLeft) GongGetGongstructName() string

func (*LogoOnTheLeft) GongGetIdentifier

func (logoontheleft *LogoOnTheLeft) GongGetIdentifier(stage *Stage) string

func (*LogoOnTheLeft) GongGetInstanceFromOrder

func (*LogoOnTheLeft) GongGetInstanceFromOrder(stage *Stage, order uint) any

func (*LogoOnTheLeft) GongGetInstancesByOrder

func (*LogoOnTheLeft) GongGetInstancesByOrder(stage *Stage) any

func (*LogoOnTheLeft) GongGetInstancesMapByName

func (*LogoOnTheLeft) GongGetInstancesMapByName(stage *Stage) any

func (*LogoOnTheLeft) GongGetInstancesSet

func (*LogoOnTheLeft) GongGetInstancesSet(stage *Stage) any

func (*LogoOnTheLeft) GongGetOrder

func (logoontheleft *LogoOnTheLeft) GongGetOrder(stage *Stage) uint

func (*LogoOnTheLeft) GongGetReferenceIdentifier

func (logoontheleft *LogoOnTheLeft) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*LogoOnTheLeft) GongGetReverseFieldOwnerName

func (inst *LogoOnTheLeft) GongGetReverseFieldOwnerName(stage *Stage, reverseField *GongReverseField) (res string)

func (*LogoOnTheLeft) GongGetReverseFields

func (*LogoOnTheLeft) GongGetReverseFields() []GongReverseField

func (*LogoOnTheLeft) GongGetUUID

func (logoontheleft *LogoOnTheLeft) GongGetUUID(stage *Stage) string

func (*LogoOnTheLeft) GongIsStaged

func (logoontheleft *LogoOnTheLeft) GongIsStaged(stage *Stage) bool

func (*LogoOnTheLeft) GongMarshallAllFields

func (logoontheleft *LogoOnTheLeft) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*LogoOnTheLeft) GongMarshallField

func (logoontheleft *LogoOnTheLeft) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*LogoOnTheLeft) GongMarshallIdentifier

func (logoontheleft *LogoOnTheLeft) GongMarshallIdentifier(stage *Stage) string

func (*LogoOnTheLeft) GongMarshallUnstaging

func (logoontheleft *LogoOnTheLeft) GongMarshallUnstaging(stage *Stage) string

func (*LogoOnTheLeft) GongNewInstance

func (*LogoOnTheLeft) GongNewInstance() any

func (*LogoOnTheLeft) GongOnAfterUpdateFromFront

func (logoontheleft *LogoOnTheLeft) GongOnAfterUpdateFromFront(stage *Stage, front GongstructIF)

func (*LogoOnTheLeft) GongReconstructPointersFromInstances

func (reference *LogoOnTheLeft) GongReconstructPointersFromInstances(stage *Stage)

func (*LogoOnTheLeft) GongReconstructPointersFromReferences

func (reference *LogoOnTheLeft) GongReconstructPointersFromReferences(stage *Stage, instance *LogoOnTheLeft)

func (*LogoOnTheLeft) GongStageBranch

func (logoontheleft *LogoOnTheLeft) GongStageBranch(stage *Stage)

func (*LogoOnTheLeft) GongUnstageBranch

func (logoontheleft *LogoOnTheLeft) GongUnstageBranch(stage *Stage)

func (*LogoOnTheLeft) SetName

func (logoontheleft *LogoOnTheLeft) SetName(name 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) StagePreserveOrder

func (logoontheleft *LogoOnTheLeft) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts logoontheleft to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.LogoOnTheLeftOrder - update stage.LogoOnTheLeftOrder accordingly

func (*LogoOnTheLeft) StageVoid

func (logoontheleft *LogoOnTheLeft) StageVoid(stage *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 LogoOnTheLeftUnmarshaller

type LogoOnTheLeftUnmarshaller struct{}

func (*LogoOnTheLeftUnmarshaller) Initialize

func (u *LogoOnTheLeftUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*LogoOnTheLeftUnmarshaller) UnmarshallField

func (u *LogoOnTheLeftUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type LogoOnTheLeft_WOP

type LogoOnTheLeft_WOP struct {
	Name string

	Width int

	Height int

	SVG string
}

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 GongCopyBranchLogoOnTheRight

func GongCopyBranchLogoOnTheRight(mapOrigCopy map[any]any, logoontherightFrom *LogoOnTheRight) (logoontherightTo *LogoOnTheRight)

func (*LogoOnTheRight) GetName

func (logoontheright *LogoOnTheRight) GetName() (res string)

for satisfaction of GongStruct interface

func (*LogoOnTheRight) GongAfterCreateFromFront

func (logoontheright *LogoOnTheRight) GongAfterCreateFromFront(stage *Stage)

func (*LogoOnTheRight) GongAfterDeleteFromFront

func (logoontheright *LogoOnTheRight) GongAfterDeleteFromFront(stage *Stage, front GongstructIF)

func (*LogoOnTheRight) GongCopy

func (logoontheright *LogoOnTheRight) GongCopy() GongstructIF

func (*LogoOnTheRight) GongCopyBasicFields

func (from *LogoOnTheRight) GongCopyBasicFields(to *LogoOnTheRight)

func (*LogoOnTheRight) GongDiff

func (logoontheright *LogoOnTheRight) GongDiff(stage *Stage, logoontherightOther *LogoOnTheRight) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (LogoOnTheRight) GongGetAssociationName

func (LogoOnTheRight) GongGetAssociationName() any

func (*LogoOnTheRight) GongGetFieldHeaders

func (logoontheright *LogoOnTheRight) GongGetFieldHeaders() (res []GongFieldHeader)

func (*LogoOnTheRight) GongGetFieldValue

func (logoontheright *LogoOnTheRight) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*LogoOnTheRight) GongGetGongstructName

func (logoontheright *LogoOnTheRight) GongGetGongstructName() string

func (*LogoOnTheRight) GongGetIdentifier

func (logoontheright *LogoOnTheRight) GongGetIdentifier(stage *Stage) string

func (*LogoOnTheRight) GongGetInstanceFromOrder

func (*LogoOnTheRight) GongGetInstanceFromOrder(stage *Stage, order uint) any

func (*LogoOnTheRight) GongGetInstancesByOrder

func (*LogoOnTheRight) GongGetInstancesByOrder(stage *Stage) any

func (*LogoOnTheRight) GongGetInstancesMapByName

func (*LogoOnTheRight) GongGetInstancesMapByName(stage *Stage) any

func (*LogoOnTheRight) GongGetInstancesSet

func (*LogoOnTheRight) GongGetInstancesSet(stage *Stage) any

func (*LogoOnTheRight) GongGetOrder

func (logoontheright *LogoOnTheRight) GongGetOrder(stage *Stage) uint

func (*LogoOnTheRight) GongGetReferenceIdentifier

func (logoontheright *LogoOnTheRight) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*LogoOnTheRight) GongGetReverseFieldOwnerName

func (inst *LogoOnTheRight) GongGetReverseFieldOwnerName(stage *Stage, reverseField *GongReverseField) (res string)

func (*LogoOnTheRight) GongGetReverseFields

func (*LogoOnTheRight) GongGetReverseFields() []GongReverseField

func (*LogoOnTheRight) GongGetUUID

func (logoontheright *LogoOnTheRight) GongGetUUID(stage *Stage) string

func (*LogoOnTheRight) GongIsStaged

func (logoontheright *LogoOnTheRight) GongIsStaged(stage *Stage) bool

func (*LogoOnTheRight) GongMarshallAllFields

func (logoontheright *LogoOnTheRight) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*LogoOnTheRight) GongMarshallField

func (logoontheright *LogoOnTheRight) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*LogoOnTheRight) GongMarshallIdentifier

func (logoontheright *LogoOnTheRight) GongMarshallIdentifier(stage *Stage) string

func (*LogoOnTheRight) GongMarshallUnstaging

func (logoontheright *LogoOnTheRight) GongMarshallUnstaging(stage *Stage) string

func (*LogoOnTheRight) GongNewInstance

func (*LogoOnTheRight) GongNewInstance() any

func (*LogoOnTheRight) GongOnAfterUpdateFromFront

func (logoontheright *LogoOnTheRight) GongOnAfterUpdateFromFront(stage *Stage, front GongstructIF)

func (*LogoOnTheRight) GongReconstructPointersFromInstances

func (reference *LogoOnTheRight) GongReconstructPointersFromInstances(stage *Stage)

func (*LogoOnTheRight) GongReconstructPointersFromReferences

func (reference *LogoOnTheRight) GongReconstructPointersFromReferences(stage *Stage, instance *LogoOnTheRight)

func (*LogoOnTheRight) GongStageBranch

func (logoontheright *LogoOnTheRight) GongStageBranch(stage *Stage)

func (*LogoOnTheRight) GongUnstageBranch

func (logoontheright *LogoOnTheRight) GongUnstageBranch(stage *Stage)

func (*LogoOnTheRight) SetName

func (logoontheright *LogoOnTheRight) SetName(name 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) StagePreserveOrder

func (logoontheright *LogoOnTheRight) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts logoontheright to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.LogoOnTheRightOrder - update stage.LogoOnTheRightOrder accordingly

func (*LogoOnTheRight) StageVoid

func (logoontheright *LogoOnTheRight) StageVoid(stage *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 LogoOnTheRightUnmarshaller

type LogoOnTheRightUnmarshaller struct{}

func (*LogoOnTheRightUnmarshaller) Initialize

func (u *LogoOnTheRightUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*LogoOnTheRightUnmarshaller) UnmarshallField

func (u *LogoOnTheRightUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type LogoOnTheRight_WOP

type LogoOnTheRight_WOP struct {
	Name string

	Width int

	Height int

	SVG string
}

type Markdown

type Markdown struct {
	Name      string // name of the stack
	StackName string
}

func GongCopyBranchMarkdown

func GongCopyBranchMarkdown(mapOrigCopy map[any]any, markdownFrom *Markdown) (markdownTo *Markdown)

func (*Markdown) GetName

func (markdown *Markdown) GetName() (res string)

for satisfaction of GongStruct interface

func (*Markdown) GongAfterCreateFromFront

func (markdown *Markdown) GongAfterCreateFromFront(stage *Stage)

func (*Markdown) GongAfterDeleteFromFront

func (markdown *Markdown) GongAfterDeleteFromFront(stage *Stage, front GongstructIF)

func (*Markdown) GongCopy

func (markdown *Markdown) GongCopy() GongstructIF

func (*Markdown) GongCopyBasicFields

func (from *Markdown) GongCopyBasicFields(to *Markdown)

func (*Markdown) GongDiff

func (markdown *Markdown) GongDiff(stage *Stage, markdownOther *Markdown) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (Markdown) GongGetAssociationName

func (Markdown) GongGetAssociationName() any

func (*Markdown) GongGetFieldHeaders

func (markdown *Markdown) GongGetFieldHeaders() (res []GongFieldHeader)

func (*Markdown) GongGetFieldValue

func (markdown *Markdown) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*Markdown) GongGetGongstructName

func (markdown *Markdown) GongGetGongstructName() string

func (*Markdown) GongGetIdentifier

func (markdown *Markdown) GongGetIdentifier(stage *Stage) string

func (*Markdown) GongGetInstanceFromOrder

func (*Markdown) GongGetInstanceFromOrder(stage *Stage, order uint) any

func (*Markdown) GongGetInstancesByOrder

func (*Markdown) GongGetInstancesByOrder(stage *Stage) any

func (*Markdown) GongGetInstancesMapByName

func (*Markdown) GongGetInstancesMapByName(stage *Stage) any

func (*Markdown) GongGetInstancesSet

func (*Markdown) GongGetInstancesSet(stage *Stage) any

func (*Markdown) GongGetOrder

func (markdown *Markdown) GongGetOrder(stage *Stage) uint

func (*Markdown) GongGetReferenceIdentifier

func (markdown *Markdown) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*Markdown) GongGetReverseFieldOwnerName

func (inst *Markdown) GongGetReverseFieldOwnerName(stage *Stage, reverseField *GongReverseField) (res string)

func (*Markdown) GongGetReverseFields

func (*Markdown) GongGetReverseFields() []GongReverseField

func (*Markdown) GongGetUUID

func (markdown *Markdown) GongGetUUID(stage *Stage) string

func (*Markdown) GongIsStaged

func (markdown *Markdown) GongIsStaged(stage *Stage) bool

func (*Markdown) GongMarshallAllFields

func (markdown *Markdown) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*Markdown) GongMarshallField

func (markdown *Markdown) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*Markdown) GongMarshallIdentifier

func (markdown *Markdown) GongMarshallIdentifier(stage *Stage) string

func (*Markdown) GongMarshallUnstaging

func (markdown *Markdown) GongMarshallUnstaging(stage *Stage) string

func (*Markdown) GongNewInstance

func (*Markdown) GongNewInstance() any

func (*Markdown) GongOnAfterUpdateFromFront

func (markdown *Markdown) GongOnAfterUpdateFromFront(stage *Stage, front GongstructIF)

func (*Markdown) GongReconstructPointersFromInstances

func (reference *Markdown) GongReconstructPointersFromInstances(stage *Stage)

func (*Markdown) GongReconstructPointersFromReferences

func (reference *Markdown) GongReconstructPointersFromReferences(stage *Stage, instance *Markdown)

func (*Markdown) GongStageBranch

func (markdown *Markdown) GongStageBranch(stage *Stage)

func (*Markdown) GongUnstageBranch

func (markdown *Markdown) GongUnstageBranch(stage *Stage)

func (*Markdown) SetName

func (markdown *Markdown) SetName(name string)

for satisfaction of GongStruct interface

func (*Markdown) Stage

func (markdown *Markdown) Stage(stage *Stage) *Markdown

Stage puts markdown to the model stage

func (*Markdown) StagePreserveOrder

func (markdown *Markdown) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts markdown to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.MarkdownOrder - update stage.MarkdownOrder accordingly

func (*Markdown) StageVoid

func (markdown *Markdown) StageVoid(stage *Stage)

func (*Markdown) Unstage

func (markdown *Markdown) Unstage(stage *Stage) *Markdown

Unstage removes markdown off the model stage

func (*Markdown) UnstageVoid

func (markdown *Markdown) UnstageVoid(stage *Stage)

UnstageVoid removes markdown off the model stage

type MarkdownUnmarshaller

type MarkdownUnmarshaller struct{}

func (*MarkdownUnmarshaller) Initialize

func (u *MarkdownUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*MarkdownUnmarshaller) UnmarshallField

func (u *MarkdownUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type Markdown_WOP

type Markdown_WOP struct {
	Name string

	StackName string
}

type MetaPackageImport

type MetaPackageImport struct {
	Alias string
	Path  string
}

MetaPackageImport represents a package import needed by a meta/diagram file

type ModelUnmarshaller

type ModelUnmarshaller = GongModelUnmarshaller

type OnAfterCreateInterface

type OnAfterCreateInterface[Type Gongstruct] = GongOnAfterCreateInterface[Type]

type OnAfterDeleteInterface

type OnAfterDeleteInterface[Type Gongstruct] = GongOnAfterDeleteInterface[Type]

type OnAfterUpdateInterface

type OnAfterUpdateInterface[Type Gongstruct] = GongOnAfterUpdateInterface[Type]

type OnInitCommitInterface

type OnInitCommitInterface = GongOnInitCommitInterface

type PointerToGongstruct

type PointerToGongstruct = GongstructPtr

type PointerToGongstructEnumIntField

type PointerToGongstructEnumIntField = GongEnumIntPointer

type PointerToGongstructEnumStringField

type PointerToGongstructEnumStringField = GongEnumStringPointer

type ReverseField

type ReverseField = GongReverseField

type Slider

type Slider struct {
	Name      string // name of the stack
	StackName string
}

func GongCopyBranchSlider

func GongCopyBranchSlider(mapOrigCopy map[any]any, sliderFrom *Slider) (sliderTo *Slider)

func (*Slider) GetName

func (slider *Slider) GetName() (res string)

for satisfaction of GongStruct interface

func (*Slider) GongAfterCreateFromFront

func (slider *Slider) GongAfterCreateFromFront(stage *Stage)

func (*Slider) GongAfterDeleteFromFront

func (slider *Slider) GongAfterDeleteFromFront(stage *Stage, front GongstructIF)

func (*Slider) GongCopy

func (slider *Slider) GongCopy() GongstructIF

func (*Slider) GongCopyBasicFields

func (from *Slider) GongCopyBasicFields(to *Slider)

func (*Slider) GongDiff

func (slider *Slider) GongDiff(stage *Stage, sliderOther *Slider) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (Slider) GongGetAssociationName

func (Slider) GongGetAssociationName() any

func (*Slider) GongGetFieldHeaders

func (slider *Slider) GongGetFieldHeaders() (res []GongFieldHeader)

func (*Slider) GongGetFieldValue

func (slider *Slider) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*Slider) GongGetGongstructName

func (slider *Slider) GongGetGongstructName() string

func (*Slider) GongGetIdentifier

func (slider *Slider) GongGetIdentifier(stage *Stage) string

func (*Slider) GongGetInstanceFromOrder

func (*Slider) GongGetInstanceFromOrder(stage *Stage, order uint) any

func (*Slider) GongGetInstancesByOrder

func (*Slider) GongGetInstancesByOrder(stage *Stage) any

func (*Slider) GongGetInstancesMapByName

func (*Slider) GongGetInstancesMapByName(stage *Stage) any

func (*Slider) GongGetInstancesSet

func (*Slider) GongGetInstancesSet(stage *Stage) any

func (*Slider) GongGetOrder

func (slider *Slider) GongGetOrder(stage *Stage) uint

func (*Slider) GongGetReferenceIdentifier

func (slider *Slider) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*Slider) GongGetReverseFieldOwnerName

func (inst *Slider) GongGetReverseFieldOwnerName(stage *Stage, reverseField *GongReverseField) (res string)

func (*Slider) GongGetReverseFields

func (*Slider) GongGetReverseFields() []GongReverseField

func (*Slider) GongGetUUID

func (slider *Slider) GongGetUUID(stage *Stage) string

func (*Slider) GongIsStaged

func (slider *Slider) GongIsStaged(stage *Stage) bool

func (*Slider) GongMarshallAllFields

func (slider *Slider) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*Slider) GongMarshallField

func (slider *Slider) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*Slider) GongMarshallIdentifier

func (slider *Slider) GongMarshallIdentifier(stage *Stage) string

func (*Slider) GongMarshallUnstaging

func (slider *Slider) GongMarshallUnstaging(stage *Stage) string

func (*Slider) GongNewInstance

func (*Slider) GongNewInstance() any

func (*Slider) GongOnAfterUpdateFromFront

func (slider *Slider) GongOnAfterUpdateFromFront(stage *Stage, front GongstructIF)

func (*Slider) GongReconstructPointersFromInstances

func (reference *Slider) GongReconstructPointersFromInstances(stage *Stage)

func (*Slider) GongReconstructPointersFromReferences

func (reference *Slider) GongReconstructPointersFromReferences(stage *Stage, instance *Slider)

func (*Slider) GongStageBranch

func (slider *Slider) GongStageBranch(stage *Stage)

func (*Slider) GongUnstageBranch

func (slider *Slider) GongUnstageBranch(stage *Stage)

func (*Slider) SetName

func (slider *Slider) SetName(name string)

for satisfaction of GongStruct interface

func (*Slider) Stage

func (slider *Slider) Stage(stage *Stage) *Slider

Stage puts slider to the model stage

func (*Slider) StagePreserveOrder

func (slider *Slider) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts slider to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.SliderOrder - update stage.SliderOrder accordingly

func (*Slider) StageVoid

func (slider *Slider) StageVoid(stage *Stage)

func (*Slider) Unstage

func (slider *Slider) Unstage(stage *Stage) *Slider

Unstage removes slider off the model stage

func (*Slider) UnstageVoid

func (slider *Slider) UnstageVoid(stage *Stage)

UnstageVoid removes slider off the model stage

type SliderUnmarshaller

type SliderUnmarshaller struct{}

func (*SliderUnmarshaller) Initialize

func (u *SliderUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*SliderUnmarshaller) UnmarshallField

func (u *SliderUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type Slider_WOP

type Slider_WOP struct {
	Name string

	StackName string
}

type Split

type Split struct {
	Name      string // name of the stack
	StackName string
}

func GongCopyBranchSplit

func GongCopyBranchSplit(mapOrigCopy map[any]any, splitFrom *Split) (splitTo *Split)

func (*Split) GetName

func (split *Split) GetName() (res string)

for satisfaction of GongStruct interface

func (*Split) GongAfterCreateFromFront

func (split *Split) GongAfterCreateFromFront(stage *Stage)

func (*Split) GongAfterDeleteFromFront

func (split *Split) GongAfterDeleteFromFront(stage *Stage, front GongstructIF)

func (*Split) GongCopy

func (split *Split) GongCopy() GongstructIF

func (*Split) GongCopyBasicFields

func (from *Split) GongCopyBasicFields(to *Split)

func (*Split) GongDiff

func (split *Split) GongDiff(stage *Stage, splitOther *Split) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (Split) GongGetAssociationName

func (Split) GongGetAssociationName() any

func (*Split) GongGetFieldHeaders

func (split *Split) GongGetFieldHeaders() (res []GongFieldHeader)

func (*Split) GongGetFieldValue

func (split *Split) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*Split) GongGetGongstructName

func (split *Split) GongGetGongstructName() string

func (*Split) GongGetIdentifier

func (split *Split) GongGetIdentifier(stage *Stage) string

func (*Split) GongGetInstanceFromOrder

func (*Split) GongGetInstanceFromOrder(stage *Stage, order uint) any

func (*Split) GongGetInstancesByOrder

func (*Split) GongGetInstancesByOrder(stage *Stage) any

func (*Split) GongGetInstancesMapByName

func (*Split) GongGetInstancesMapByName(stage *Stage) any

func (*Split) GongGetInstancesSet

func (*Split) GongGetInstancesSet(stage *Stage) any

func (*Split) GongGetOrder

func (split *Split) GongGetOrder(stage *Stage) uint

func (*Split) GongGetReferenceIdentifier

func (split *Split) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*Split) GongGetReverseFieldOwnerName

func (inst *Split) GongGetReverseFieldOwnerName(stage *Stage, reverseField *GongReverseField) (res string)

func (*Split) GongGetReverseFields

func (*Split) GongGetReverseFields() []GongReverseField

func (*Split) GongGetUUID

func (split *Split) GongGetUUID(stage *Stage) string

func (*Split) GongIsStaged

func (split *Split) GongIsStaged(stage *Stage) bool

func (*Split) GongMarshallAllFields

func (split *Split) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*Split) GongMarshallField

func (split *Split) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*Split) GongMarshallIdentifier

func (split *Split) GongMarshallIdentifier(stage *Stage) string

func (*Split) GongMarshallUnstaging

func (split *Split) GongMarshallUnstaging(stage *Stage) string

func (*Split) GongNewInstance

func (*Split) GongNewInstance() any

func (*Split) GongOnAfterUpdateFromFront

func (split *Split) GongOnAfterUpdateFromFront(stage *Stage, front GongstructIF)

func (*Split) GongReconstructPointersFromInstances

func (reference *Split) GongReconstructPointersFromInstances(stage *Stage)

func (*Split) GongReconstructPointersFromReferences

func (reference *Split) GongReconstructPointersFromReferences(stage *Stage, instance *Split)

func (*Split) GongStageBranch

func (split *Split) GongStageBranch(stage *Stage)

func (*Split) GongUnstageBranch

func (split *Split) GongUnstageBranch(stage *Stage)

func (*Split) SetName

func (split *Split) SetName(name string)

for satisfaction of GongStruct interface

func (*Split) Stage

func (split *Split) Stage(stage *Stage) *Split

Stage puts split to the model stage

func (*Split) StagePreserveOrder

func (split *Split) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts split to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.SplitOrder - update stage.SplitOrder accordingly

func (*Split) StageVoid

func (split *Split) StageVoid(stage *Stage)

func (*Split) Unstage

func (split *Split) Unstage(stage *Stage) *Split

Unstage removes split off the model stage

func (*Split) UnstageVoid

func (split *Split) UnstageVoid(stage *Stage)

UnstageVoid removes split off the model stage

type SplitUnmarshaller

type SplitUnmarshaller struct{}

func (*SplitUnmarshaller) Initialize

func (u *SplitUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*SplitUnmarshaller) UnmarshallField

func (u *SplitUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type Split_WOP

type Split_WOP struct {
	Name string

	StackName string
}

type Stage

type Stage struct {
	gong_runtime.StageCore

	// insertion point for definition of arrays registering instances
	AsSplits                map[*AsSplit]struct{}
	AsSplits_instance       map[*AsSplit]*AsSplit
	AsSplits_mapString      map[string]*AsSplit
	AsSplitOrder            uint
	AsSplit_stagedOrder     map[*AsSplit]uint
	AsSplit_orderStaged     map[uint]*AsSplit
	AsSplits_reference      map[*AsSplit]*AsSplit
	AsSplits_referenceOrder map[*AsSplit]uint

	// insertion point for slice of pointers maps
	AsSplit_AsSplitAreas_reverseMap map[*AsSplitArea]*AsSplit

	OnAfterAsSplitCreateCallback GongOnAfterCreateInterface[AsSplit]
	OnAfterAsSplitUpdateCallback GongOnAfterUpdateInterface[AsSplit]
	OnAfterAsSplitDeleteCallback GongOnAfterDeleteInterface[AsSplit]

	AsSplitAreas                map[*AsSplitArea]struct{}
	AsSplitAreas_instance       map[*AsSplitArea]*AsSplitArea
	AsSplitAreas_mapString      map[string]*AsSplitArea
	AsSplitAreaOrder            uint
	AsSplitArea_stagedOrder     map[*AsSplitArea]uint
	AsSplitArea_orderStaged     map[uint]*AsSplitArea
	AsSplitAreas_reference      map[*AsSplitArea]*AsSplitArea
	AsSplitAreas_referenceOrder map[*AsSplitArea]uint

	// insertion point for slice of pointers maps
	OnAfterAsSplitAreaCreateCallback GongOnAfterCreateInterface[AsSplitArea]
	OnAfterAsSplitAreaUpdateCallback GongOnAfterUpdateInterface[AsSplitArea]
	OnAfterAsSplitAreaDeleteCallback GongOnAfterDeleteInterface[AsSplitArea]

	Buttons                map[*Button]struct{}
	Buttons_instance       map[*Button]*Button
	Buttons_mapString      map[string]*Button
	ButtonOrder            uint
	Button_stagedOrder     map[*Button]uint
	Button_orderStaged     map[uint]*Button
	Buttons_reference      map[*Button]*Button
	Buttons_referenceOrder map[*Button]uint

	// insertion point for slice of pointers maps
	OnAfterButtonCreateCallback GongOnAfterCreateInterface[Button]
	OnAfterButtonUpdateCallback GongOnAfterUpdateInterface[Button]
	OnAfterButtonDeleteCallback GongOnAfterDeleteInterface[Button]

	Cursors                map[*Cursor]struct{}
	Cursors_instance       map[*Cursor]*Cursor
	Cursors_mapString      map[string]*Cursor
	CursorOrder            uint
	Cursor_stagedOrder     map[*Cursor]uint
	Cursor_orderStaged     map[uint]*Cursor
	Cursors_reference      map[*Cursor]*Cursor
	Cursors_referenceOrder map[*Cursor]uint

	// insertion point for slice of pointers maps
	OnAfterCursorCreateCallback GongOnAfterCreateInterface[Cursor]
	OnAfterCursorUpdateCallback GongOnAfterUpdateInterface[Cursor]
	OnAfterCursorDeleteCallback GongOnAfterDeleteInterface[Cursor]

	FavIcons                map[*FavIcon]struct{}
	FavIcons_instance       map[*FavIcon]*FavIcon
	FavIcons_mapString      map[string]*FavIcon
	FavIconOrder            uint
	FavIcon_stagedOrder     map[*FavIcon]uint
	FavIcon_orderStaged     map[uint]*FavIcon
	FavIcons_reference      map[*FavIcon]*FavIcon
	FavIcons_referenceOrder map[*FavIcon]uint

	// insertion point for slice of pointers maps
	OnAfterFavIconCreateCallback GongOnAfterCreateInterface[FavIcon]
	OnAfterFavIconUpdateCallback GongOnAfterUpdateInterface[FavIcon]
	OnAfterFavIconDeleteCallback GongOnAfterDeleteInterface[FavIcon]

	Forms                map[*Form]struct{}
	Forms_instance       map[*Form]*Form
	Forms_mapString      map[string]*Form
	FormOrder            uint
	Form_stagedOrder     map[*Form]uint
	Form_orderStaged     map[uint]*Form
	Forms_reference      map[*Form]*Form
	Forms_referenceOrder map[*Form]uint

	// insertion point for slice of pointers maps
	OnAfterFormCreateCallback GongOnAfterCreateInterface[Form]
	OnAfterFormUpdateCallback GongOnAfterUpdateInterface[Form]
	OnAfterFormDeleteCallback GongOnAfterDeleteInterface[Form]

	Loads                map[*Load]struct{}
	Loads_instance       map[*Load]*Load
	Loads_mapString      map[string]*Load
	LoadOrder            uint
	Load_stagedOrder     map[*Load]uint
	Load_orderStaged     map[uint]*Load
	Loads_reference      map[*Load]*Load
	Loads_referenceOrder map[*Load]uint

	// insertion point for slice of pointers maps
	OnAfterLoadCreateCallback GongOnAfterCreateInterface[Load]
	OnAfterLoadUpdateCallback GongOnAfterUpdateInterface[Load]
	OnAfterLoadDeleteCallback GongOnAfterDeleteInterface[Load]

	LogoOnTheLefts                map[*LogoOnTheLeft]struct{}
	LogoOnTheLefts_instance       map[*LogoOnTheLeft]*LogoOnTheLeft
	LogoOnTheLefts_mapString      map[string]*LogoOnTheLeft
	LogoOnTheLeftOrder            uint
	LogoOnTheLeft_stagedOrder     map[*LogoOnTheLeft]uint
	LogoOnTheLeft_orderStaged     map[uint]*LogoOnTheLeft
	LogoOnTheLefts_reference      map[*LogoOnTheLeft]*LogoOnTheLeft
	LogoOnTheLefts_referenceOrder map[*LogoOnTheLeft]uint

	// insertion point for slice of pointers maps
	OnAfterLogoOnTheLeftCreateCallback GongOnAfterCreateInterface[LogoOnTheLeft]
	OnAfterLogoOnTheLeftUpdateCallback GongOnAfterUpdateInterface[LogoOnTheLeft]
	OnAfterLogoOnTheLeftDeleteCallback GongOnAfterDeleteInterface[LogoOnTheLeft]

	LogoOnTheRights                map[*LogoOnTheRight]struct{}
	LogoOnTheRights_instance       map[*LogoOnTheRight]*LogoOnTheRight
	LogoOnTheRights_mapString      map[string]*LogoOnTheRight
	LogoOnTheRightOrder            uint
	LogoOnTheRight_stagedOrder     map[*LogoOnTheRight]uint
	LogoOnTheRight_orderStaged     map[uint]*LogoOnTheRight
	LogoOnTheRights_reference      map[*LogoOnTheRight]*LogoOnTheRight
	LogoOnTheRights_referenceOrder map[*LogoOnTheRight]uint

	// insertion point for slice of pointers maps
	OnAfterLogoOnTheRightCreateCallback GongOnAfterCreateInterface[LogoOnTheRight]
	OnAfterLogoOnTheRightUpdateCallback GongOnAfterUpdateInterface[LogoOnTheRight]
	OnAfterLogoOnTheRightDeleteCallback GongOnAfterDeleteInterface[LogoOnTheRight]

	Markdowns                map[*Markdown]struct{}
	Markdowns_instance       map[*Markdown]*Markdown
	Markdowns_mapString      map[string]*Markdown
	MarkdownOrder            uint
	Markdown_stagedOrder     map[*Markdown]uint
	Markdown_orderStaged     map[uint]*Markdown
	Markdowns_reference      map[*Markdown]*Markdown
	Markdowns_referenceOrder map[*Markdown]uint

	// insertion point for slice of pointers maps
	OnAfterMarkdownCreateCallback GongOnAfterCreateInterface[Markdown]
	OnAfterMarkdownUpdateCallback GongOnAfterUpdateInterface[Markdown]
	OnAfterMarkdownDeleteCallback GongOnAfterDeleteInterface[Markdown]

	Sliders                map[*Slider]struct{}
	Sliders_instance       map[*Slider]*Slider
	Sliders_mapString      map[string]*Slider
	SliderOrder            uint
	Slider_stagedOrder     map[*Slider]uint
	Slider_orderStaged     map[uint]*Slider
	Sliders_reference      map[*Slider]*Slider
	Sliders_referenceOrder map[*Slider]uint

	// insertion point for slice of pointers maps
	OnAfterSliderCreateCallback GongOnAfterCreateInterface[Slider]
	OnAfterSliderUpdateCallback GongOnAfterUpdateInterface[Slider]
	OnAfterSliderDeleteCallback GongOnAfterDeleteInterface[Slider]

	Splits                map[*Split]struct{}
	Splits_instance       map[*Split]*Split
	Splits_mapString      map[string]*Split
	SplitOrder            uint
	Split_stagedOrder     map[*Split]uint
	Split_orderStaged     map[uint]*Split
	Splits_reference      map[*Split]*Split
	Splits_referenceOrder map[*Split]uint

	// insertion point for slice of pointers maps
	OnAfterSplitCreateCallback GongOnAfterCreateInterface[Split]
	OnAfterSplitUpdateCallback GongOnAfterUpdateInterface[Split]
	OnAfterSplitDeleteCallback GongOnAfterDeleteInterface[Split]

	Svgs                map[*Svg]struct{}
	Svgs_instance       map[*Svg]*Svg
	Svgs_mapString      map[string]*Svg
	SvgOrder            uint
	Svg_stagedOrder     map[*Svg]uint
	Svg_orderStaged     map[uint]*Svg
	Svgs_reference      map[*Svg]*Svg
	Svgs_referenceOrder map[*Svg]uint

	// insertion point for slice of pointers maps
	OnAfterSvgCreateCallback GongOnAfterCreateInterface[Svg]
	OnAfterSvgUpdateCallback GongOnAfterUpdateInterface[Svg]
	OnAfterSvgDeleteCallback GongOnAfterDeleteInterface[Svg]

	Tables                map[*Table]struct{}
	Tables_instance       map[*Table]*Table
	Tables_mapString      map[string]*Table
	TableOrder            uint
	Table_stagedOrder     map[*Table]uint
	Table_orderStaged     map[uint]*Table
	Tables_reference      map[*Table]*Table
	Tables_referenceOrder map[*Table]uint

	// insertion point for slice of pointers maps
	OnAfterTableCreateCallback GongOnAfterCreateInterface[Table]
	OnAfterTableUpdateCallback GongOnAfterUpdateInterface[Table]
	OnAfterTableDeleteCallback GongOnAfterDeleteInterface[Table]

	Threejss                map[*Threejs]struct{}
	Threejss_instance       map[*Threejs]*Threejs
	Threejss_mapString      map[string]*Threejs
	ThreejsOrder            uint
	Threejs_stagedOrder     map[*Threejs]uint
	Threejs_orderStaged     map[uint]*Threejs
	Threejss_reference      map[*Threejs]*Threejs
	Threejss_referenceOrder map[*Threejs]uint

	// insertion point for slice of pointers maps
	OnAfterThreejsCreateCallback GongOnAfterCreateInterface[Threejs]
	OnAfterThreejsUpdateCallback GongOnAfterUpdateInterface[Threejs]
	OnAfterThreejsDeleteCallback GongOnAfterDeleteInterface[Threejs]

	Titles                map[*Title]struct{}
	Titles_instance       map[*Title]*Title
	Titles_mapString      map[string]*Title
	TitleOrder            uint
	Title_stagedOrder     map[*Title]uint
	Title_orderStaged     map[uint]*Title
	Titles_reference      map[*Title]*Title
	Titles_referenceOrder map[*Title]uint

	// insertion point for slice of pointers maps
	OnAfterTitleCreateCallback GongOnAfterCreateInterface[Title]
	OnAfterTitleUpdateCallback GongOnAfterUpdateInterface[Title]
	OnAfterTitleDeleteCallback GongOnAfterDeleteInterface[Title]

	Tones                map[*Tone]struct{}
	Tones_instance       map[*Tone]*Tone
	Tones_mapString      map[string]*Tone
	ToneOrder            uint
	Tone_stagedOrder     map[*Tone]uint
	Tone_orderStaged     map[uint]*Tone
	Tones_reference      map[*Tone]*Tone
	Tones_referenceOrder map[*Tone]uint

	// insertion point for slice of pointers maps
	OnAfterToneCreateCallback GongOnAfterCreateInterface[Tone]
	OnAfterToneUpdateCallback GongOnAfterUpdateInterface[Tone]
	OnAfterToneDeleteCallback GongOnAfterDeleteInterface[Tone]

	Trees                map[*Tree]struct{}
	Trees_instance       map[*Tree]*Tree
	Trees_mapString      map[string]*Tree
	TreeOrder            uint
	Tree_stagedOrder     map[*Tree]uint
	Tree_orderStaged     map[uint]*Tree
	Trees_reference      map[*Tree]*Tree
	Trees_referenceOrder map[*Tree]uint

	// insertion point for slice of pointers maps
	OnAfterTreeCreateCallback GongOnAfterCreateInterface[Tree]
	OnAfterTreeUpdateCallback GongOnAfterUpdateInterface[Tree]
	OnAfterTreeDeleteCallback GongOnAfterDeleteInterface[Tree]

	Views                map[*View]struct{}
	Views_instance       map[*View]*View
	Views_mapString      map[string]*View
	ViewOrder            uint
	View_stagedOrder     map[*View]uint
	View_orderStaged     map[uint]*View
	Views_reference      map[*View]*View
	Views_referenceOrder map[*View]uint

	// insertion point for slice of pointers maps
	View_RootAsSplitAreas_reverseMap map[*AsSplitArea]*View

	OnAfterViewCreateCallback GongOnAfterCreateInterface[View]
	OnAfterViewUpdateCallback GongOnAfterUpdateInterface[View]
	OnAfterViewDeleteCallback GongOnAfterDeleteInterface[View]

	Xlsxs                map[*Xlsx]struct{}
	Xlsxs_instance       map[*Xlsx]*Xlsx
	Xlsxs_mapString      map[string]*Xlsx
	XlsxOrder            uint
	Xlsx_stagedOrder     map[*Xlsx]uint
	Xlsx_orderStaged     map[uint]*Xlsx
	Xlsxs_reference      map[*Xlsx]*Xlsx
	Xlsxs_referenceOrder map[*Xlsx]uint

	// insertion point for slice of pointers maps
	OnAfterXlsxCreateCallback GongOnAfterCreateInterface[Xlsx]
	OnAfterXlsxUpdateCallback GongOnAfterUpdateInterface[Xlsx]
	OnAfterXlsxDeleteCallback GongOnAfterDeleteInterface[Xlsx]

	BackRepo GongBackRepoInterface

	// if set will be called before each commit to the back repo
	OnInitCommitCallback          GongOnInitCommitInterface
	OnInitCommitFromFrontCallback GongOnInitCommitInterface
	OnInitCommitFromBackCallback  GongOnInitCommitInterface

	// store the number of instance per gongstruct
	Map_GongStructName_InstancesNb map[string]int

	// store meta package import
	MetaPackageImportPath  string
	MetaPackageImportAlias string
	MetaPackageImports     []*MetaPackageImport

	// 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

	// GongUnmarshallers is the registry of all model unmarshallers
	GongUnmarshallers map[string]GongModelUnmarshaller
	// contains filtered or unexported fields
}

Stage enables storage of staged instances

func NewStage

func NewStage(name string) (stage *Stage)

func (*Stage) AfterCreateFromFront

func (stage *Stage) AfterCreateFromFront(instance GongstructIF)

AfterCreateFromFront is the Stage method called after a create from front.

func (*Stage) AfterDeleteFromFront

func (stage *Stage) AfterDeleteFromFront(staged, front GongstructIF)

AfterDeleteFromFront is the Stage method called after a delete from front.

func (*Stage) ApplyBackwardCommit

func (stage *Stage) ApplyBackwardCommit() error

ApplyBackwardCommit applies the commit before the current one

func (*Stage) ApplyForwardCommit

func (stage *Stage) ApplyForwardCommit() error

ApplyForwardCommit applies the commit after the current one

func (*Stage) Backup

func (stage *Stage) Backup(dirPath string)

backup generates backup files in the dirPath

func (*Stage) BackupXL

func (stage *Stage) BackupXL(dirPath string)

backup generates backup files in the dirPath

func (*Stage) Checkout

func (stage *Stage) Checkout()

func (*Stage) Clean

func (stage *Stage) Clean() (modified bool)

Clean garbage collect unstaged instances that are referenced by staged elements

func (*Stage) CleanPointer

func (stage *Stage) CleanPointer[T GongstructPtr](element *T) (modified bool)

CleanPointer is the Stage method that sets the pointer to nil if the referenced element is not staged.

func (*Stage) CleanSlice

func (stage *Stage) CleanSlice[T GongstructPtr](slice *[]T) (modified bool)

CleanSlice is the Stage method that removes unstaged elements from a slice of pointers.

func (*Stage) Commit

func (stage *Stage) Commit()

func (*Stage) CommitWithSuspendedCallbacks

func (stage *Stage) CommitWithSuspendedCallbacks()

func (*Stage) ComputeForwardAndBackwardCommits

func (stage *Stage) ComputeForwardAndBackwardCommits()

func (*Stage) ComputeInstancesNb

func (stage *Stage) ComputeInstancesNb()

func (*Stage) ComputeReferenceAndOrders

func (stage *Stage) ComputeReferenceAndOrders()

ComputeReferenceAndOrders will creates a deep copy of each of the staged elements

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) Diff

func (stage *Stage) Diff(
	a GongstructIF,
	fieldName string,
	lenOld, lenNew int,
	equal func(i, j int) bool,
	getNewIdentifier func(j int) string,
) (ops string)

Diff is the Stage method that returns the sequence of operations to transform oldSlice into newSlice.

func (*Stage) GetFieldStringValueFromPointer

func (stage *Stage) GetFieldStringValueFromPointer(instance GongstructIF, fieldName string) (res GongFieldValue)

func (*Stage) GetInstanceFromOrder

func (stage *Stage) GetInstanceFromOrder[Type GongstructPtr](order uint) (res Type)

GetInstanceFromOrder is the Stage method returning a gongstruct instance from its order.

func (*Stage) GetInstances

func (stage *Stage) GetInstances() (res []GongstructIF)

func (*Stage) GetInstancesByOrder

func (stage *Stage) GetInstancesByOrder[T GongstructPtr]() (res []T)

GetInstancesByOrder is the Stage method returning a slice of generic pointers to gongstructs ordered by their order in the stage.

func (*Stage) GetInstancesMapByName

func (stage *Stage) GetInstancesMapByName[Type GongstructIF]() map[string]Type

GetInstancesMapByName is the Stage method returning a map of staged instances by their name.

func (*Stage) GetInstancesSet

func (stage *Stage) GetInstancesSet[Type GongstructPtr]() *map[Type]struct{}

GetInstancesSet is the Stage method returning the set of staged instances (pointer-type constraint).

func (*Stage) GetInstancesSorted

func (stage *Stage) GetInstancesSorted[T GongstructPtr]() (sortedSlice []T)

GetInstancesSorted is the Stage method returning sorted instances of a gongstruct.

func (*Stage) GetOrder

func (stage *Stage) GetOrder(instance GongstructIF) uint

GetOrder is the Stage method returning the order of a gongstruct instance.

func (*Stage) GetPointerReverseMap

func (stage *Stage) GetPointerReverseMap[Start, End Gongstruct](fieldname string) 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 GetPointerReverseMap is the Stage method for backtrack navigation of pointer associations.

func (*Stage) GetProbeFormStageName

func (stage *Stage) GetProbeFormStageName() string

func (*Stage) GetProbeIF

func (stage *Stage) GetProbeIF() GongProbeIF

func (*Stage) GetProbeLoadStageName

func (stage *Stage) GetProbeLoadStageName() string

func (*Stage) GetProbeNavigationTreeSidebarStageName

func (stage *Stage) GetProbeNavigationTreeSidebarStageName() string

func (*Stage) GetProbeNotificationTableStageName

func (stage *Stage) GetProbeNotificationTableStageName() string

func (*Stage) GetProbeSplitStageName

func (stage *Stage) GetProbeSplitStageName() string

func (*Stage) GetProbeTableStageName

func (stage *Stage) GetProbeTableStageName() string

func (*Stage) GetProbeTreeSidebarStageName

func (stage *Stage) GetProbeTreeSidebarStageName() string

func (*Stage) GetSliceOfPointersReverseMap

func (stage *Stage) GetSliceOfPointersReverseMap[Start, End Gongstruct](fieldname string) map[*End][]*Start

GetSliceOfPointersReverseMap is the Stage method for backtrack navigation of slice-of-pointers associations.

func (*Stage) GetType

func (stage *Stage) GetType() string

func (*Stage) GongNewInstance

func (stage *Stage) GongNewInstance[Type GongstructPtr]() (res Type)

func (*Stage) IsStaged

func (stage *Stage) IsStaged(instance GongstructIF) (ok bool)

IsStaged is the Stage method checking if a gongstruct instance is staged.

func (*Stage) Marshall

func (stage *Stage) Marshall(file *os.File, args ...string)

Marshall marshall the stage content into the file as an instanciation into a stage

func (*Stage) MarshallFile

func (stage *Stage) MarshallFile(filename string, args ...string)

MarshallFile marshall the stage content into a file as an instanciation into a stage according to the marshalling policy of the stage.

In GongMarshallingAppendCommit mode, it will append the last commit to the file. In other modes, it will rewrite the entire file.

func (*Stage) MarshallToString

func (stage *Stage) MarshallToString(args ...string) (res string, err error)

MarshallToString marshall the stage content into a string

func (*Stage) NewInstance

func (stage *Stage) NewInstance[Type GongstructPtr]() (res Type)

func (*Stage) OnAfterUpdateFromFront

func (stage *Stage) OnAfterUpdateFromFront(old, new GongstructIF)

OnAfterUpdateFromFront is the Stage method called after an update from front.

func (*Stage) ParseAstEmbeddedFile

func (stage *Stage) ParseAstEmbeddedFile(directory embed.FS, pathToFile string) error

ParseAstEmbeddedFile parses the Go source code from an embedded file

func (*Stage) ParseAstFile

func (stage *Stage) ParseAstFile(pathToFile string, preserveOrder bool) error

ParseAstFile Parse pathToFile and stages all instances declared in the file

func (*Stage) ParseAstFileFromAst

func (stage *Stage) ParseAstFileFromAst(inFile *ast.File, fset *token.FileSet, preserveOrder bool) error

ParseAstFileFromAst traverses the AST and stages instances across stage and its sub-stages

func (*Stage) ParseAstString

func (stage *Stage) ParseAstString(blob string, preserveOrder bool) error

ParseAstString parses the Go source code from a string

func (*Stage) RegisterAfterCommit

func (s *Stage) RegisterAfterCommit(hook func(stage *Stage))

RegisterAfterCommit adds a hook that runs after the commit succeeds

func (*Stage) RegisterBeforeCommit

func (s *Stage) RegisterBeforeCommit(hook func(stage *Stage))

RegisterBeforeCommit adds a hook that runs before the commit happens

func (*Stage) Reset

func (stage *Stage) Reset()

func (*Stage) ResetHard

func (stage *Stage) ResetHard()

ResetHard removes the more recent commitsBehind forward/backward Commits from the stage

func (*Stage) ResetMapStrings

func (stage *Stage) ResetMapStrings()

func (*Stage) Restore

func (stage *Stage) Restore(dirPath string)

Restore resets Stage & BackRepo and restores their content from the restore files in dirPath

func (*Stage) RestoreXL

func (stage *Stage) RestoreXL(dirPath string)

Restore resets Stage & BackRepo and restores their content from the restore files in dirPath

func (*Stage) SerializeExcelize

func (stage *Stage) SerializeExcelize(f *excelize.File, name string, instances []GongstructIF, fields []GongFieldHeader, addIDs bool)

SerializeExcelize is the Stage method for Excel serialization with optional IDs.

func (*Stage) SerializeExcelizePointer

func (stage *Stage) SerializeExcelizePointer[Type GongstructPtr](f *excelize.File)

SerializeExcelizePointer is the Stage method for Excel serialization.

func (*Stage) SerializeExcelizePointer2

func (stage *Stage) SerializeExcelizePointer2[Type GongstructPtr](f *excelize.File, addIDs bool)

SerializeExcelizePointer2 is the Stage method for Excel serialization with optional IDs.

func (*Stage) SerializeStage

func (stage *Stage) SerializeStage(filename string)

func (*Stage) SerializeStage2

func (stage *Stage) SerializeStage2(filename string, addIDs bool)

func (*Stage) SerializeStageAsBytes

func (stage *Stage) SerializeStageAsBytes(addIDs bool) ([]byte, error)

SerializeStageAsBytes serializes the stage to a pure in-memory Excel file and returns the bytes.

func (*Stage) SetOrchestratorOnAfterUpdate

func (stage *Stage) SetOrchestratorOnAfterUpdate[Type Gongstruct]()

SetOrchestratorOnAfterUpdate is the Stage method for setting orchestrators.

func (*Stage) SetProbeIF

func (stage *Stage) SetProbeIF(probeIF GongProbeIF)

func (*Stage) Squash

func (stage *Stage) Squash()

Squash removes all commits and marshals the stage as a single commit

func (*Stage) StageBranch

func (stage *Stage) StageBranch(instance GongstructIF)

StageBranch is the Stage method that stages instance and applies StageBranch recursively.

func (*Stage) UnstageBranch

func (stage *Stage) UnstageBranch(instance GongstructIF)

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 UnstageBranch is the Stage method that unstages instance and applies UnstageBranch recursively.

type Svg

type Svg struct {
	Name      string // name of the stack
	StackName string
	Style     string
}

func GongCopyBranchSvg

func GongCopyBranchSvg(mapOrigCopy map[any]any, svgFrom *Svg) (svgTo *Svg)

func (*Svg) GetName

func (svg *Svg) GetName() (res string)

for satisfaction of GongStruct interface

func (*Svg) GongAfterCreateFromFront

func (svg *Svg) GongAfterCreateFromFront(stage *Stage)

func (*Svg) GongAfterDeleteFromFront

func (svg *Svg) GongAfterDeleteFromFront(stage *Stage, front GongstructIF)

func (*Svg) GongCopy

func (svg *Svg) GongCopy() GongstructIF

func (*Svg) GongCopyBasicFields

func (from *Svg) GongCopyBasicFields(to *Svg)

func (*Svg) GongDiff

func (svg *Svg) GongDiff(stage *Stage, svgOther *Svg) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (Svg) GongGetAssociationName

func (Svg) GongGetAssociationName() any

func (*Svg) GongGetFieldHeaders

func (svg *Svg) GongGetFieldHeaders() (res []GongFieldHeader)

func (*Svg) GongGetFieldValue

func (svg *Svg) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*Svg) GongGetGongstructName

func (svg *Svg) GongGetGongstructName() string

func (*Svg) GongGetIdentifier

func (svg *Svg) GongGetIdentifier(stage *Stage) string

func (*Svg) GongGetInstanceFromOrder

func (*Svg) GongGetInstanceFromOrder(stage *Stage, order uint) any

func (*Svg) GongGetInstancesByOrder

func (*Svg) GongGetInstancesByOrder(stage *Stage) any

func (*Svg) GongGetInstancesMapByName

func (*Svg) GongGetInstancesMapByName(stage *Stage) any

func (*Svg) GongGetInstancesSet

func (*Svg) GongGetInstancesSet(stage *Stage) any

func (*Svg) GongGetOrder

func (svg *Svg) GongGetOrder(stage *Stage) uint

func (*Svg) GongGetReferenceIdentifier

func (svg *Svg) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*Svg) GongGetReverseFieldOwnerName

func (inst *Svg) GongGetReverseFieldOwnerName(stage *Stage, reverseField *GongReverseField) (res string)

func (*Svg) GongGetReverseFields

func (*Svg) GongGetReverseFields() []GongReverseField

func (*Svg) GongGetUUID

func (svg *Svg) GongGetUUID(stage *Stage) string

func (*Svg) GongIsStaged

func (svg *Svg) GongIsStaged(stage *Stage) bool

func (*Svg) GongMarshallAllFields

func (svg *Svg) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*Svg) GongMarshallField

func (svg *Svg) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*Svg) GongMarshallIdentifier

func (svg *Svg) GongMarshallIdentifier(stage *Stage) string

func (*Svg) GongMarshallUnstaging

func (svg *Svg) GongMarshallUnstaging(stage *Stage) string

func (*Svg) GongNewInstance

func (*Svg) GongNewInstance() any

func (*Svg) GongOnAfterUpdateFromFront

func (svg *Svg) GongOnAfterUpdateFromFront(stage *Stage, front GongstructIF)

func (*Svg) GongReconstructPointersFromInstances

func (reference *Svg) GongReconstructPointersFromInstances(stage *Stage)

func (*Svg) GongReconstructPointersFromReferences

func (reference *Svg) GongReconstructPointersFromReferences(stage *Stage, instance *Svg)

func (*Svg) GongStageBranch

func (svg *Svg) GongStageBranch(stage *Stage)

func (*Svg) GongUnstageBranch

func (svg *Svg) GongUnstageBranch(stage *Stage)

func (*Svg) SetName

func (svg *Svg) SetName(name string)

for satisfaction of GongStruct interface

func (*Svg) Stage

func (svg *Svg) Stage(stage *Stage) *Svg

Stage puts svg to the model stage

func (*Svg) StagePreserveOrder

func (svg *Svg) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts svg to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.SvgOrder - update stage.SvgOrder accordingly

func (*Svg) StageVoid

func (svg *Svg) StageVoid(stage *Stage)

func (*Svg) Unstage

func (svg *Svg) Unstage(stage *Stage) *Svg

Unstage removes svg off the model stage

func (*Svg) UnstageVoid

func (svg *Svg) UnstageVoid(stage *Stage)

UnstageVoid removes svg off the model stage

type SvgUnmarshaller

type SvgUnmarshaller struct{}

func (*SvgUnmarshaller) Initialize

func (u *SvgUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*SvgUnmarshaller) UnmarshallField

func (u *SvgUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type Svg_WOP

type Svg_WOP struct {
	Name string

	StackName string

	Style string
}

type Table

type Table struct {
	Name      string // name of the stack
	StackName string
}

func GongCopyBranchTable

func GongCopyBranchTable(mapOrigCopy map[any]any, tableFrom *Table) (tableTo *Table)

func (*Table) GetName

func (table *Table) GetName() (res string)

for satisfaction of GongStruct interface

func (*Table) GongAfterCreateFromFront

func (table *Table) GongAfterCreateFromFront(stage *Stage)

func (*Table) GongAfterDeleteFromFront

func (table *Table) GongAfterDeleteFromFront(stage *Stage, front GongstructIF)

func (*Table) GongCopy

func (table *Table) GongCopy() GongstructIF

func (*Table) GongCopyBasicFields

func (from *Table) GongCopyBasicFields(to *Table)

func (*Table) GongDiff

func (table *Table) GongDiff(stage *Stage, tableOther *Table) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (Table) GongGetAssociationName

func (Table) GongGetAssociationName() any

func (*Table) GongGetFieldHeaders

func (table *Table) GongGetFieldHeaders() (res []GongFieldHeader)

func (*Table) GongGetFieldValue

func (table *Table) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*Table) GongGetGongstructName

func (table *Table) GongGetGongstructName() string

func (*Table) GongGetIdentifier

func (table *Table) GongGetIdentifier(stage *Stage) string

func (*Table) GongGetInstanceFromOrder

func (*Table) GongGetInstanceFromOrder(stage *Stage, order uint) any

func (*Table) GongGetInstancesByOrder

func (*Table) GongGetInstancesByOrder(stage *Stage) any

func (*Table) GongGetInstancesMapByName

func (*Table) GongGetInstancesMapByName(stage *Stage) any

func (*Table) GongGetInstancesSet

func (*Table) GongGetInstancesSet(stage *Stage) any

func (*Table) GongGetOrder

func (table *Table) GongGetOrder(stage *Stage) uint

func (*Table) GongGetReferenceIdentifier

func (table *Table) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*Table) GongGetReverseFieldOwnerName

func (inst *Table) GongGetReverseFieldOwnerName(stage *Stage, reverseField *GongReverseField) (res string)

func (*Table) GongGetReverseFields

func (*Table) GongGetReverseFields() []GongReverseField

func (*Table) GongGetUUID

func (table *Table) GongGetUUID(stage *Stage) string

func (*Table) GongIsStaged

func (table *Table) GongIsStaged(stage *Stage) bool

func (*Table) GongMarshallAllFields

func (table *Table) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*Table) GongMarshallField

func (table *Table) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*Table) GongMarshallIdentifier

func (table *Table) GongMarshallIdentifier(stage *Stage) string

func (*Table) GongMarshallUnstaging

func (table *Table) GongMarshallUnstaging(stage *Stage) string

func (*Table) GongNewInstance

func (*Table) GongNewInstance() any

func (*Table) GongOnAfterUpdateFromFront

func (table *Table) GongOnAfterUpdateFromFront(stage *Stage, front GongstructIF)

func (*Table) GongReconstructPointersFromInstances

func (reference *Table) GongReconstructPointersFromInstances(stage *Stage)

func (*Table) GongReconstructPointersFromReferences

func (reference *Table) GongReconstructPointersFromReferences(stage *Stage, instance *Table)

func (*Table) GongStageBranch

func (table *Table) GongStageBranch(stage *Stage)

func (*Table) GongUnstageBranch

func (table *Table) GongUnstageBranch(stage *Stage)

func (*Table) SetName

func (table *Table) SetName(name string)

for satisfaction of GongStruct interface

func (*Table) Stage

func (table *Table) Stage(stage *Stage) *Table

Stage puts table to the model stage

func (*Table) StagePreserveOrder

func (table *Table) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts table to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.TableOrder - update stage.TableOrder accordingly

func (*Table) StageVoid

func (table *Table) StageVoid(stage *Stage)

func (*Table) Unstage

func (table *Table) Unstage(stage *Stage) *Table

Unstage removes table off the model stage

func (*Table) UnstageVoid

func (table *Table) UnstageVoid(stage *Stage)

UnstageVoid removes table off the model stage

type TableUnmarshaller

type TableUnmarshaller struct{}

func (*TableUnmarshaller) Initialize

func (u *TableUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*TableUnmarshaller) UnmarshallField

func (u *TableUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type Table_WOP

type Table_WOP struct {
	Name string

	StackName string
}

type Tabulator

type Tabulator = GongTabulator

type Threejs

type Threejs struct {
	Name      string // name of the stack
	StackName string
}

func GongCopyBranchThreejs

func GongCopyBranchThreejs(mapOrigCopy map[any]any, threejsFrom *Threejs) (threejsTo *Threejs)

func (*Threejs) GetName

func (threejs *Threejs) GetName() (res string)

for satisfaction of GongStruct interface

func (*Threejs) GongAfterCreateFromFront

func (threejs *Threejs) GongAfterCreateFromFront(stage *Stage)

func (*Threejs) GongAfterDeleteFromFront

func (threejs *Threejs) GongAfterDeleteFromFront(stage *Stage, front GongstructIF)

func (*Threejs) GongCopy

func (threejs *Threejs) GongCopy() GongstructIF

func (*Threejs) GongCopyBasicFields

func (from *Threejs) GongCopyBasicFields(to *Threejs)

func (*Threejs) GongDiff

func (threejs *Threejs) GongDiff(stage *Stage, threejsOther *Threejs) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (Threejs) GongGetAssociationName

func (Threejs) GongGetAssociationName() any

func (*Threejs) GongGetFieldHeaders

func (threejs *Threejs) GongGetFieldHeaders() (res []GongFieldHeader)

func (*Threejs) GongGetFieldValue

func (threejs *Threejs) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*Threejs) GongGetGongstructName

func (threejs *Threejs) GongGetGongstructName() string

func (*Threejs) GongGetIdentifier

func (threejs *Threejs) GongGetIdentifier(stage *Stage) string

func (*Threejs) GongGetInstanceFromOrder

func (*Threejs) GongGetInstanceFromOrder(stage *Stage, order uint) any

func (*Threejs) GongGetInstancesByOrder

func (*Threejs) GongGetInstancesByOrder(stage *Stage) any

func (*Threejs) GongGetInstancesMapByName

func (*Threejs) GongGetInstancesMapByName(stage *Stage) any

func (*Threejs) GongGetInstancesSet

func (*Threejs) GongGetInstancesSet(stage *Stage) any

func (*Threejs) GongGetOrder

func (threejs *Threejs) GongGetOrder(stage *Stage) uint

func (*Threejs) GongGetReferenceIdentifier

func (threejs *Threejs) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*Threejs) GongGetReverseFieldOwnerName

func (inst *Threejs) GongGetReverseFieldOwnerName(stage *Stage, reverseField *GongReverseField) (res string)

func (*Threejs) GongGetReverseFields

func (*Threejs) GongGetReverseFields() []GongReverseField

func (*Threejs) GongGetUUID

func (threejs *Threejs) GongGetUUID(stage *Stage) string

func (*Threejs) GongIsStaged

func (threejs *Threejs) GongIsStaged(stage *Stage) bool

func (*Threejs) GongMarshallAllFields

func (threejs *Threejs) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*Threejs) GongMarshallField

func (threejs *Threejs) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*Threejs) GongMarshallIdentifier

func (threejs *Threejs) GongMarshallIdentifier(stage *Stage) string

func (*Threejs) GongMarshallUnstaging

func (threejs *Threejs) GongMarshallUnstaging(stage *Stage) string

func (*Threejs) GongNewInstance

func (*Threejs) GongNewInstance() any

func (*Threejs) GongOnAfterUpdateFromFront

func (threejs *Threejs) GongOnAfterUpdateFromFront(stage *Stage, front GongstructIF)

func (*Threejs) GongReconstructPointersFromInstances

func (reference *Threejs) GongReconstructPointersFromInstances(stage *Stage)

func (*Threejs) GongReconstructPointersFromReferences

func (reference *Threejs) GongReconstructPointersFromReferences(stage *Stage, instance *Threejs)

func (*Threejs) GongStageBranch

func (threejs *Threejs) GongStageBranch(stage *Stage)

func (*Threejs) GongUnstageBranch

func (threejs *Threejs) GongUnstageBranch(stage *Stage)

func (*Threejs) SetName

func (threejs *Threejs) SetName(name string)

for satisfaction of GongStruct interface

func (*Threejs) Stage

func (threejs *Threejs) Stage(stage *Stage) *Threejs

Stage puts threejs to the model stage

func (*Threejs) StagePreserveOrder

func (threejs *Threejs) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts threejs to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.ThreejsOrder - update stage.ThreejsOrder accordingly

func (*Threejs) StageVoid

func (threejs *Threejs) StageVoid(stage *Stage)

func (*Threejs) Unstage

func (threejs *Threejs) Unstage(stage *Stage) *Threejs

Unstage removes threejs off the model stage

func (*Threejs) UnstageVoid

func (threejs *Threejs) UnstageVoid(stage *Stage)

UnstageVoid removes threejs off the model stage

type ThreejsUnmarshaller

type ThreejsUnmarshaller struct{}

func (*ThreejsUnmarshaller) Initialize

func (u *ThreejsUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*ThreejsUnmarshaller) UnmarshallField

func (u *ThreejsUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type Threejs_WOP

type Threejs_WOP struct {
	Name string

	StackName string
}

type Title

type Title struct {
	Name string
}

You can configure the browser tab title and favicon dynamically in Angular

func GongCopyBranchTitle

func GongCopyBranchTitle(mapOrigCopy map[any]any, titleFrom *Title) (titleTo *Title)

func (*Title) GetName

func (title *Title) GetName() (res string)

for satisfaction of GongStruct interface

func (*Title) GongAfterCreateFromFront

func (title *Title) GongAfterCreateFromFront(stage *Stage)

func (*Title) GongAfterDeleteFromFront

func (title *Title) GongAfterDeleteFromFront(stage *Stage, front GongstructIF)

func (*Title) GongCopy

func (title *Title) GongCopy() GongstructIF

func (*Title) GongCopyBasicFields

func (from *Title) GongCopyBasicFields(to *Title)

func (*Title) GongDiff

func (title *Title) GongDiff(stage *Stage, titleOther *Title) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (Title) GongGetAssociationName

func (Title) GongGetAssociationName() any

func (*Title) GongGetFieldHeaders

func (title *Title) GongGetFieldHeaders() (res []GongFieldHeader)

func (*Title) GongGetFieldValue

func (title *Title) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*Title) GongGetGongstructName

func (title *Title) GongGetGongstructName() string

func (*Title) GongGetIdentifier

func (title *Title) GongGetIdentifier(stage *Stage) string

func (*Title) GongGetInstanceFromOrder

func (*Title) GongGetInstanceFromOrder(stage *Stage, order uint) any

func (*Title) GongGetInstancesByOrder

func (*Title) GongGetInstancesByOrder(stage *Stage) any

func (*Title) GongGetInstancesMapByName

func (*Title) GongGetInstancesMapByName(stage *Stage) any

func (*Title) GongGetInstancesSet

func (*Title) GongGetInstancesSet(stage *Stage) any

func (*Title) GongGetOrder

func (title *Title) GongGetOrder(stage *Stage) uint

func (*Title) GongGetReferenceIdentifier

func (title *Title) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*Title) GongGetReverseFieldOwnerName

func (inst *Title) GongGetReverseFieldOwnerName(stage *Stage, reverseField *GongReverseField) (res string)

func (*Title) GongGetReverseFields

func (*Title) GongGetReverseFields() []GongReverseField

func (*Title) GongGetUUID

func (title *Title) GongGetUUID(stage *Stage) string

func (*Title) GongIsStaged

func (title *Title) GongIsStaged(stage *Stage) bool

func (*Title) GongMarshallAllFields

func (title *Title) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*Title) GongMarshallField

func (title *Title) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*Title) GongMarshallIdentifier

func (title *Title) GongMarshallIdentifier(stage *Stage) string

func (*Title) GongMarshallUnstaging

func (title *Title) GongMarshallUnstaging(stage *Stage) string

func (*Title) GongNewInstance

func (*Title) GongNewInstance() any

func (*Title) GongOnAfterUpdateFromFront

func (title *Title) GongOnAfterUpdateFromFront(stage *Stage, front GongstructIF)

func (*Title) GongReconstructPointersFromInstances

func (reference *Title) GongReconstructPointersFromInstances(stage *Stage)

func (*Title) GongReconstructPointersFromReferences

func (reference *Title) GongReconstructPointersFromReferences(stage *Stage, instance *Title)

func (*Title) GongStageBranch

func (title *Title) GongStageBranch(stage *Stage)

func (*Title) GongUnstageBranch

func (title *Title) GongUnstageBranch(stage *Stage)

func (*Title) SetName

func (title *Title) SetName(name string)

for satisfaction of GongStruct interface

func (*Title) Stage

func (title *Title) Stage(stage *Stage) *Title

Stage puts title to the model stage

func (*Title) StagePreserveOrder

func (title *Title) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts title to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.TitleOrder - update stage.TitleOrder accordingly

func (*Title) StageVoid

func (title *Title) StageVoid(stage *Stage)

func (*Title) Unstage

func (title *Title) Unstage(stage *Stage) *Title

Unstage removes title off the model stage

func (*Title) UnstageVoid

func (title *Title) UnstageVoid(stage *Stage)

UnstageVoid removes title off the model stage

type TitleUnmarshaller

type TitleUnmarshaller struct{}

func (*TitleUnmarshaller) Initialize

func (u *TitleUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*TitleUnmarshaller) UnmarshallField

func (u *TitleUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type Title_WOP

type Title_WOP struct {
	Name string
}

type Tone

type Tone struct {
	Name      string // name of the stack
	StackName string
}

func GongCopyBranchTone

func GongCopyBranchTone(mapOrigCopy map[any]any, toneFrom *Tone) (toneTo *Tone)

func (*Tone) GetName

func (tone *Tone) GetName() (res string)

for satisfaction of GongStruct interface

func (*Tone) GongAfterCreateFromFront

func (tone *Tone) GongAfterCreateFromFront(stage *Stage)

func (*Tone) GongAfterDeleteFromFront

func (tone *Tone) GongAfterDeleteFromFront(stage *Stage, front GongstructIF)

func (*Tone) GongCopy

func (tone *Tone) GongCopy() GongstructIF

func (*Tone) GongCopyBasicFields

func (from *Tone) GongCopyBasicFields(to *Tone)

func (*Tone) GongDiff

func (tone *Tone) GongDiff(stage *Stage, toneOther *Tone) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (Tone) GongGetAssociationName

func (Tone) GongGetAssociationName() any

func (*Tone) GongGetFieldHeaders

func (tone *Tone) GongGetFieldHeaders() (res []GongFieldHeader)

func (*Tone) GongGetFieldValue

func (tone *Tone) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*Tone) GongGetGongstructName

func (tone *Tone) GongGetGongstructName() string

func (*Tone) GongGetIdentifier

func (tone *Tone) GongGetIdentifier(stage *Stage) string

func (*Tone) GongGetInstanceFromOrder

func (*Tone) GongGetInstanceFromOrder(stage *Stage, order uint) any

func (*Tone) GongGetInstancesByOrder

func (*Tone) GongGetInstancesByOrder(stage *Stage) any

func (*Tone) GongGetInstancesMapByName

func (*Tone) GongGetInstancesMapByName(stage *Stage) any

func (*Tone) GongGetInstancesSet

func (*Tone) GongGetInstancesSet(stage *Stage) any

func (*Tone) GongGetOrder

func (tone *Tone) GongGetOrder(stage *Stage) uint

func (*Tone) GongGetReferenceIdentifier

func (tone *Tone) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*Tone) GongGetReverseFieldOwnerName

func (inst *Tone) GongGetReverseFieldOwnerName(stage *Stage, reverseField *GongReverseField) (res string)

func (*Tone) GongGetReverseFields

func (*Tone) GongGetReverseFields() []GongReverseField

func (*Tone) GongGetUUID

func (tone *Tone) GongGetUUID(stage *Stage) string

func (*Tone) GongIsStaged

func (tone *Tone) GongIsStaged(stage *Stage) bool

func (*Tone) GongMarshallAllFields

func (tone *Tone) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*Tone) GongMarshallField

func (tone *Tone) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*Tone) GongMarshallIdentifier

func (tone *Tone) GongMarshallIdentifier(stage *Stage) string

func (*Tone) GongMarshallUnstaging

func (tone *Tone) GongMarshallUnstaging(stage *Stage) string

func (*Tone) GongNewInstance

func (*Tone) GongNewInstance() any

func (*Tone) GongOnAfterUpdateFromFront

func (tone *Tone) GongOnAfterUpdateFromFront(stage *Stage, front GongstructIF)

func (*Tone) GongReconstructPointersFromInstances

func (reference *Tone) GongReconstructPointersFromInstances(stage *Stage)

func (*Tone) GongReconstructPointersFromReferences

func (reference *Tone) GongReconstructPointersFromReferences(stage *Stage, instance *Tone)

func (*Tone) GongStageBranch

func (tone *Tone) GongStageBranch(stage *Stage)

func (*Tone) GongUnstageBranch

func (tone *Tone) GongUnstageBranch(stage *Stage)

func (*Tone) SetName

func (tone *Tone) SetName(name string)

for satisfaction of GongStruct interface

func (*Tone) Stage

func (tone *Tone) Stage(stage *Stage) *Tone

Stage puts tone to the model stage

func (*Tone) StagePreserveOrder

func (tone *Tone) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts tone to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.ToneOrder - update stage.ToneOrder accordingly

func (*Tone) StageVoid

func (tone *Tone) StageVoid(stage *Stage)

func (*Tone) Unstage

func (tone *Tone) Unstage(stage *Stage) *Tone

Unstage removes tone off the model stage

func (*Tone) UnstageVoid

func (tone *Tone) UnstageVoid(stage *Stage)

UnstageVoid removes tone off the model stage

type ToneUnmarshaller

type ToneUnmarshaller struct{}

func (*ToneUnmarshaller) Initialize

func (u *ToneUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*ToneUnmarshaller) UnmarshallField

func (u *ToneUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type Tone_WOP

type Tone_WOP struct {
	Name string

	StackName string
}

type Tree

type Tree struct {
	Name      string // name of the stack
	StackName string
}

func GongCopyBranchTree

func GongCopyBranchTree(mapOrigCopy map[any]any, treeFrom *Tree) (treeTo *Tree)

func (*Tree) GetName

func (tree *Tree) GetName() (res string)

for satisfaction of GongStruct interface

func (*Tree) GongAfterCreateFromFront

func (tree *Tree) GongAfterCreateFromFront(stage *Stage)

func (*Tree) GongAfterDeleteFromFront

func (tree *Tree) GongAfterDeleteFromFront(stage *Stage, front GongstructIF)

func (*Tree) GongCopy

func (tree *Tree) GongCopy() GongstructIF

func (*Tree) GongCopyBasicFields

func (from *Tree) GongCopyBasicFields(to *Tree)

func (*Tree) GongDiff

func (tree *Tree) GongDiff(stage *Stage, treeOther *Tree) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (Tree) GongGetAssociationName

func (Tree) GongGetAssociationName() any

func (*Tree) GongGetFieldHeaders

func (tree *Tree) GongGetFieldHeaders() (res []GongFieldHeader)

func (*Tree) GongGetFieldValue

func (tree *Tree) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*Tree) GongGetGongstructName

func (tree *Tree) GongGetGongstructName() string

func (*Tree) GongGetIdentifier

func (tree *Tree) GongGetIdentifier(stage *Stage) string

func (*Tree) GongGetInstanceFromOrder

func (*Tree) GongGetInstanceFromOrder(stage *Stage, order uint) any

func (*Tree) GongGetInstancesByOrder

func (*Tree) GongGetInstancesByOrder(stage *Stage) any

func (*Tree) GongGetInstancesMapByName

func (*Tree) GongGetInstancesMapByName(stage *Stage) any

func (*Tree) GongGetInstancesSet

func (*Tree) GongGetInstancesSet(stage *Stage) any

func (*Tree) GongGetOrder

func (tree *Tree) GongGetOrder(stage *Stage) uint

func (*Tree) GongGetReferenceIdentifier

func (tree *Tree) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*Tree) GongGetReverseFieldOwnerName

func (inst *Tree) GongGetReverseFieldOwnerName(stage *Stage, reverseField *GongReverseField) (res string)

func (*Tree) GongGetReverseFields

func (*Tree) GongGetReverseFields() []GongReverseField

func (*Tree) GongGetUUID

func (tree *Tree) GongGetUUID(stage *Stage) string

func (*Tree) GongIsStaged

func (tree *Tree) GongIsStaged(stage *Stage) bool

func (*Tree) GongMarshallAllFields

func (tree *Tree) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*Tree) GongMarshallField

func (tree *Tree) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*Tree) GongMarshallIdentifier

func (tree *Tree) GongMarshallIdentifier(stage *Stage) string

func (*Tree) GongMarshallUnstaging

func (tree *Tree) GongMarshallUnstaging(stage *Stage) string

func (*Tree) GongNewInstance

func (*Tree) GongNewInstance() any

func (*Tree) GongOnAfterUpdateFromFront

func (tree *Tree) GongOnAfterUpdateFromFront(stage *Stage, front GongstructIF)

func (*Tree) GongReconstructPointersFromInstances

func (reference *Tree) GongReconstructPointersFromInstances(stage *Stage)

func (*Tree) GongReconstructPointersFromReferences

func (reference *Tree) GongReconstructPointersFromReferences(stage *Stage, instance *Tree)

func (*Tree) GongStageBranch

func (tree *Tree) GongStageBranch(stage *Stage)

func (*Tree) GongUnstageBranch

func (tree *Tree) GongUnstageBranch(stage *Stage)

func (*Tree) SetName

func (tree *Tree) SetName(name string)

for satisfaction of GongStruct interface

func (*Tree) Stage

func (tree *Tree) Stage(stage *Stage) *Tree

Stage puts tree to the model stage

func (*Tree) StagePreserveOrder

func (tree *Tree) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts tree to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.TreeOrder - update stage.TreeOrder accordingly

func (*Tree) StageVoid

func (tree *Tree) StageVoid(stage *Stage)

func (*Tree) Unstage

func (tree *Tree) Unstage(stage *Stage) *Tree

Unstage removes tree off the model stage

func (*Tree) UnstageVoid

func (tree *Tree) UnstageVoid(stage *Stage)

UnstageVoid removes tree off the model stage

type TreeUnmarshaller

type TreeUnmarshaller struct{}

func (*TreeUnmarshaller) Initialize

func (u *TreeUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*TreeUnmarshaller) UnmarshallField

func (u *TreeUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type Tree_WOP

type Tree_WOP struct {
	Name string

	StackName string
}

type View

type View struct {
	Name             string
	ShowViewName     bool // by default, a standalone views wont display the
	RootAsSplitAreas []*AsSplitArea
	IsSelectedView   bool

	// Direction the initial direction for the split dividing of the view. Vertical if ""
	Direction Direction

	// will be displayed in a vertical manner, with the first element at the top and the last element at the bottom
	IsSecondaryView bool

	IsSizeInPixel          bool
	IsWithCustomGutterSize bool
	GutterSize             float64

	OnClick func()
}

View is the top structuring eleement of the split component

There can be many instancied views The one with models.IsSelectedView set to true will be displayed (if more than one view has this field to true, the behavior is not specified)

func GongCopyBranchView

func GongCopyBranchView(mapOrigCopy map[any]any, viewFrom *View) (viewTo *View)

func (*View) GetName

func (view *View) GetName() (res string)

for satisfaction of GongStruct interface

func (*View) GongAfterCreateFromFront

func (view *View) GongAfterCreateFromFront(stage *Stage)

func (*View) GongAfterDeleteFromFront

func (view *View) GongAfterDeleteFromFront(stage *Stage, front GongstructIF)

func (*View) GongClean

func (view *View) GongClean(stage *Stage) (modified bool)

Clean garbage collect unstaged instances that are referenced by View

func (*View) GongCopy

func (view *View) GongCopy() GongstructIF

func (*View) GongCopyBasicFields

func (from *View) GongCopyBasicFields(to *View)

func (*View) GongDiff

func (view *View) GongDiff(stage *Stage, viewOther *View) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (View) GongGetAssociationName

func (View) GongGetAssociationName() any

func (*View) GongGetFieldHeaders

func (view *View) GongGetFieldHeaders() (res []GongFieldHeader)

func (*View) GongGetFieldValue

func (view *View) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*View) GongGetGongstructName

func (view *View) GongGetGongstructName() string

func (*View) GongGetIdentifier

func (view *View) GongGetIdentifier(stage *Stage) string

func (*View) GongGetInstanceFromOrder

func (*View) GongGetInstanceFromOrder(stage *Stage, order uint) any

func (*View) GongGetInstancesByOrder

func (*View) GongGetInstancesByOrder(stage *Stage) any

func (*View) GongGetInstancesMapByName

func (*View) GongGetInstancesMapByName(stage *Stage) any

func (*View) GongGetInstancesSet

func (*View) GongGetInstancesSet(stage *Stage) any

func (*View) GongGetOrder

func (view *View) GongGetOrder(stage *Stage) uint

func (*View) GongGetReferenceIdentifier

func (view *View) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*View) GongGetReverseFieldOwnerName

func (inst *View) GongGetReverseFieldOwnerName(stage *Stage, reverseField *GongReverseField) (res string)

func (*View) GongGetReverseFields

func (*View) GongGetReverseFields() []GongReverseField

func (*View) GongGetUUID

func (view *View) GongGetUUID(stage *Stage) string

func (*View) GongIsStaged

func (view *View) GongIsStaged(stage *Stage) bool

func (*View) GongMarshallAllFields

func (view *View) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*View) GongMarshallField

func (view *View) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*View) GongMarshallIdentifier

func (view *View) GongMarshallIdentifier(stage *Stage) string

func (*View) GongMarshallUnstaging

func (view *View) GongMarshallUnstaging(stage *Stage) string

func (*View) GongNewInstance

func (*View) GongNewInstance() any

func (*View) GongOnAfterUpdateFromFront

func (view *View) GongOnAfterUpdateFromFront(stage *Stage, front GongstructIF)

func (*View) GongReconstructPointersFromInstances

func (reference *View) GongReconstructPointersFromInstances(stage *Stage)

func (*View) GongReconstructPointersFromReferences

func (reference *View) GongReconstructPointersFromReferences(stage *Stage, instance *View)

func (*View) GongStageBranch

func (view *View) GongStageBranch(stage *Stage)

func (*View) GongUnstageBranch

func (view *View) GongUnstageBranch(stage *Stage)

func (*View) OnAfterUpdate

func (view *View) OnAfterUpdate(stage *Stage, _, frontView *View)

OnAfterUpdate is called when there is an update to the view

func (*View) SetName

func (view *View) SetName(name string)

for satisfaction of GongStruct interface

func (*View) Stage

func (view *View) Stage(stage *Stage) *View

Stage puts view to the model stage

func (*View) StagePreserveOrder

func (view *View) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts view to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.ViewOrder - update stage.ViewOrder accordingly

func (*View) StageVoid

func (view *View) StageVoid(stage *Stage)

func (*View) Unstage

func (view *View) Unstage(stage *Stage) *View

Unstage removes view off the model stage

func (*View) UnstageVoid

func (view *View) UnstageVoid(stage *Stage)

UnstageVoid removes view off the model stage

type ViewOrchestrator

type ViewOrchestrator struct {
}

insertion point ViewOrchestrator

func (*ViewOrchestrator) OnAfterUpdate

func (orchestrator *ViewOrchestrator) OnAfterUpdate(
	gongsvgStage *Stage,
	stagedView, backRepoView *View)

type ViewUnmarshaller

type ViewUnmarshaller struct{}

func (*ViewUnmarshaller) Initialize

func (u *ViewUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*ViewUnmarshaller) UnmarshallField

func (u *ViewUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type View_WOP

type View_WOP struct {
	Name string

	ShowViewName bool

	IsSelectedView bool

	Direction Direction

	IsSecondaryView bool

	IsSizeInPixel bool

	IsWithCustomGutterSize bool

	GutterSize float64
}

type Xlsx

type Xlsx struct {
	Name      string // name of the stack
	StackName string
}

func GongCopyBranchXlsx

func GongCopyBranchXlsx(mapOrigCopy map[any]any, xlsxFrom *Xlsx) (xlsxTo *Xlsx)

func (*Xlsx) GetName

func (xlsx *Xlsx) GetName() (res string)

for satisfaction of GongStruct interface

func (*Xlsx) GongAfterCreateFromFront

func (xlsx *Xlsx) GongAfterCreateFromFront(stage *Stage)

func (*Xlsx) GongAfterDeleteFromFront

func (xlsx *Xlsx) GongAfterDeleteFromFront(stage *Stage, front GongstructIF)

func (*Xlsx) GongCopy

func (xlsx *Xlsx) GongCopy() GongstructIF

func (*Xlsx) GongCopyBasicFields

func (from *Xlsx) GongCopyBasicFields(to *Xlsx)

func (*Xlsx) GongDiff

func (xlsx *Xlsx) GongDiff(stage *Stage, xlsxOther *Xlsx) (diffs []string)

GongDiff computes the diff between the instance and another instance of same gong struct type and returns the list of differences as strings

func (Xlsx) GongGetAssociationName

func (Xlsx) GongGetAssociationName() any

func (*Xlsx) GongGetFieldHeaders

func (xlsx *Xlsx) GongGetFieldHeaders() (res []GongFieldHeader)

func (*Xlsx) GongGetFieldValue

func (xlsx *Xlsx) GongGetFieldValue(fieldName string, stage *Stage) (res GongFieldValue)

func (*Xlsx) GongGetGongstructName

func (xlsx *Xlsx) GongGetGongstructName() string

func (*Xlsx) GongGetIdentifier

func (xlsx *Xlsx) GongGetIdentifier(stage *Stage) string

func (*Xlsx) GongGetInstanceFromOrder

func (*Xlsx) GongGetInstanceFromOrder(stage *Stage, order uint) any

func (*Xlsx) GongGetInstancesByOrder

func (*Xlsx) GongGetInstancesByOrder(stage *Stage) any

func (*Xlsx) GongGetInstancesMapByName

func (*Xlsx) GongGetInstancesMapByName(stage *Stage) any

func (*Xlsx) GongGetInstancesSet

func (*Xlsx) GongGetInstancesSet(stage *Stage) any

func (*Xlsx) GongGetOrder

func (xlsx *Xlsx) GongGetOrder(stage *Stage) uint

func (*Xlsx) GongGetReferenceIdentifier

func (xlsx *Xlsx) GongGetReferenceIdentifier(stage *Stage) string

GongGetReferenceIdentifier returns an identifier when it was staged (it may have been unstaged since)

func (*Xlsx) GongGetReverseFieldOwnerName

func (inst *Xlsx) GongGetReverseFieldOwnerName(stage *Stage, reverseField *GongReverseField) (res string)

func (*Xlsx) GongGetReverseFields

func (*Xlsx) GongGetReverseFields() []GongReverseField

func (*Xlsx) GongGetUUID

func (xlsx *Xlsx) GongGetUUID(stage *Stage) string

func (*Xlsx) GongIsStaged

func (xlsx *Xlsx) GongIsStaged(stage *Stage) bool

func (*Xlsx) GongMarshallAllFields

func (xlsx *Xlsx) GongMarshallAllFields(stage *Stage) (initRes string, ptrRes string)

func (*Xlsx) GongMarshallField

func (xlsx *Xlsx) GongMarshallField(stage *Stage, fieldName string) (res string)

func (*Xlsx) GongMarshallIdentifier

func (xlsx *Xlsx) GongMarshallIdentifier(stage *Stage) string

func (*Xlsx) GongMarshallUnstaging

func (xlsx *Xlsx) GongMarshallUnstaging(stage *Stage) string

func (*Xlsx) GongNewInstance

func (*Xlsx) GongNewInstance() any

func (*Xlsx) GongOnAfterUpdateFromFront

func (xlsx *Xlsx) GongOnAfterUpdateFromFront(stage *Stage, front GongstructIF)

func (*Xlsx) GongReconstructPointersFromInstances

func (reference *Xlsx) GongReconstructPointersFromInstances(stage *Stage)

func (*Xlsx) GongReconstructPointersFromReferences

func (reference *Xlsx) GongReconstructPointersFromReferences(stage *Stage, instance *Xlsx)

func (*Xlsx) GongStageBranch

func (xlsx *Xlsx) GongStageBranch(stage *Stage)

func (*Xlsx) GongUnstageBranch

func (xlsx *Xlsx) GongUnstageBranch(stage *Stage)

func (*Xlsx) SetName

func (xlsx *Xlsx) SetName(name string)

for satisfaction of GongStruct interface

func (*Xlsx) Stage

func (xlsx *Xlsx) Stage(stage *Stage) *Xlsx

Stage puts xlsx to the model stage

func (*Xlsx) StagePreserveOrder

func (xlsx *Xlsx) StagePreserveOrder(stage *Stage, order uint)

StagePreserveOrder puts xlsx to the model stage, and if the astrtuct was not staged before:

- force the order if the order is equal or greater than the stage.XlsxOrder - update stage.XlsxOrder accordingly

func (*Xlsx) StageVoid

func (xlsx *Xlsx) StageVoid(stage *Stage)

func (*Xlsx) Unstage

func (xlsx *Xlsx) Unstage(stage *Stage) *Xlsx

Unstage removes xlsx off the model stage

func (*Xlsx) UnstageVoid

func (xlsx *Xlsx) UnstageVoid(stage *Stage)

UnstageVoid removes xlsx off the model stage

type XlsxUnmarshaller

type XlsxUnmarshaller struct{}

func (*XlsxUnmarshaller) Initialize

func (u *XlsxUnmarshaller) Initialize(stage *Stage, identifier string, instanceName string, preserveOrder bool) (GongstructIF, error)

func (*XlsxUnmarshaller) UnmarshallField

func (u *XlsxUnmarshaller) UnmarshallField(stage *Stage, i GongstructIF, fieldName string, valueExpr ast.Expr, identifierMap map[string]GongstructIF) error

type Xlsx_WOP

type Xlsx_WOP struct {
	Name string

	StackName string
}

Directories

Path Synopsis
generated code - do not edit Package diagrams implements uml diagrams for documenting the split stack.
generated code - do not edit Package diagrams implements uml diagrams for documenting the split stack.
generated code - do not edit
generated code - do not edit
cmd/probe command
generated code - do not edit
generated code - do not edit

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL