package
0.0.0-20240901080240-38a32fc67762
Repository: https://github.com/fullstack-lang/gong.git
Documentation: pkg.go.dev

# Functions

AfterCreateFromFront is called after a create from front.
AfterDeleteFromFront is called after a delete from front.
AfterReadFromFront is called after a Read from front.
AfterUpdateFromFront is called after a update from front.
SimpleCodeGenerator generates from elements of mdlPkg the file generatedFilePath with templateCode and with subTemplateCode (code that accumulates per struct) with subSubTemplateCode (code that accumulates per field of each struct).
No description provided by the author
ComputePkgNameFromPkgPath computes the name of the package from the current working directory.
No description provided by the author
CopyBranch stages instance and apply CopyBranch on all gongstruct instances that are referenced by pointers or slices of pointers of the instance the algorithm stops along the course of graph if a vertex is already staged.
insertion point for stage branch per struct.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EvictInOtherSlices allows for adherance between the gong association model and go.
No description provided by the author
GenerateFieldParser generates Gongfields of owningGongstruct by using the map_Structname_fieldList for embedded struct fields and modelPkg for access existing gongstructs and gongenums.
GetAssociationName is a generic function that returns an instance of Type where each association is filled with an instance whose name is the name of the association This function can be handy for generating navigation function that are refactorable.
GetFields return the array of the fields.
GetFieldsFromPointer return the array of the fields.
No description provided by the author
No description provided by the author
No description provided by the author
GetGongstructInstancesMap returns the map of staged GongstructType instances it is usefull because it allows refactoring of gong struct identifier.
GetGongstructInstancesSet returns the set staged GongstructType instances it is usefull because it allows refactoring of gongstruct identifier.
GetGongstructInstancesSetFromPointerType returns the set staged GongstructType instances it is usefull because it allows refactoring of gongstruct identifier.
GetGongstructName returns the name of the Gongstruct this can be usefull if one want program robust to refactoring.
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.
GetPointerToGongstructName returns the name of the Gongstruct this can be usefull if one want program robust to refactoring.
No description provided by the author
GetSliceOfPointersReverseMap allows backtrack navigation of any Start.Fieldname associations (0..N) between one staged Gongstruct instances and many others The function provides a map with keys as instances of End and values to *Start instances the map is construed by iterating over all Start instances and populating keys with End instances and values with the Start instances.
GongGetMap returns the map of staged GongstructType instances it is usefull because it allows refactoring of gong struct identifier.
GongGetSet returns the set staged GongstructType instances it is usefull because it allows refactoring of gong struct identifier.
* * Insert sting to n-th line of file.
No description provided by the author
No description provided by the author
No description provided by the author
dir, initialized with a //go:embed directive, is the root the embedded source code usualy, it embeds go/models go/diagrams.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ParseAstFile Parse pathToFile and stages all instances declared in the file.
ParseAstFile Parse pathToFile and stages all instances declared in the file.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ReplaceOldDeclarationsInFile replaces specific text in a file at the given path.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SetCallbackAfterUpdateFromFront is a function to set up callback that is robust to refactoring.
No description provided by the author
SimpleCodeGenerator generates from elements of mdlPkg the file generatedFilePath with templateCode and with subTemplateCode (code that accumulates per struct).
SimpleCodeGenerator generates from elements of mdlPkg the file generatedFilePath with templateCode and with subTemplateCode (code that accumulates per struct).
No description provided by the author
StageBranch stages instance and apply StageBranch on all gongstruct instances that are referenced by pointers or slices of pointers of the instance the algorithm stops along the course of graph if a vertex is already staged.
UnmarshallGoStaging unmarshall a go assign statement.
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.
VerySimpleCodeGenerator generates from elements of mdlPkg the file generatedFilePath with templateCode.
No description provided by the author
Walk parses go files in the `models` directory pointed by relativePathToModel and fills up modelPkg with its Gongstruct & Gongenum if useParse is used, Walk uses go/parser.Parser # Walk leverages go Parser capabilities to fetch identifiers in go files The algo is in several steps: - First pass gather Gongstruct & Gongenums identifiers - Second pass parses fields and link them to other Gongstructs.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
list of prime numbers.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
insertion point.
GongEnum is a go const declared as enum that is selected by the gongc compiler.
No description provided by the author
GongEnumValue is a go const declared as Value of an enum that is selected by the gongc compiler.
No description provided by the author
GongLink stores the result of the parsing of a Doc Link It is appended to a [GongNote] see [Doc Links](https://tip.golang.org/doc/comment) which has been added to the go in 1.19 and is accessible in the [AST](https://pkg.go.dev/go/doc/[email protected]#DocLink).
No description provided by the author
Gongnote is a documentation note that contribues to the model documentation A Gongnote is a go comment that contains the keywork "GONGNOTE(<Name>): <body>" for instance ...
No description provided by the author
GongStruct is a go struct that is selected by the gongc compiler swagger:model.
No description provided by the author
No description provided by the author
No description provided by the author
Meta is a fallback solution explained to the meta keyword proposal.
No description provided by the author
No description provided by the author
No description provided by the author
ModelPkg is the go package where the gong source code is located It contains the list of GongStructs & GongEnum.
No description provided by the author
PointerToGongStructField swagger:model.
No description provided by the author
No description provided by the author
SliceOfPointerToGongStructField swagger:model.
No description provided by the author
StageStruct enables storage of staged instances swagger:ignore.

# Interfaces

swagger:ignore.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
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.
No description provided by the author
No description provided by the author
GongStructInterface is the interface met by GongStructs It allows runtime reflexion of instances (without the hassle of the "reflect" package).
No description provided by the author
No description provided by the author
No description provided by the author
OnAfterCreateInterface callback when an instance is updated from the front.
OnAfterDeleteInterface callback when an instance is updated from the front.
OnAfterReadInterface callback when an instance is updated from the front.
OnAfterUpdateInterface callback when an instance is updated from the front.
No description provided by the author
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.
No description provided by the author
No description provided by the author
Tabulator is an interface for writing to a table strings.

# Type aliases

swagger:ignore.
No description provided by the author