Versions in this module Expand all Collapse all v0 v0.1.0 Apr 27, 2021 Changes in this version + var OS = glfsfo.PermsStructNew() + func AstWalk(filename string) + func DisplayDecl(title string, decl []Declaration, value string, pDesc ...bool) + func GoFormatBytes(inBytes []byte) (outByte []byte, err error) + func GoFormatFile(filename string) (err error) + type Declaration struct + Content []byte + Desc string + From string + Kind string + LineEnd int + LineStart int + Name string + NameFromSrc string + OfstEnd int + OfstStart int + Params []Declaration + Type string + TypeAst string + Value string + type GoDeclarations struct + DataPresent bool + Filename string + FoundRows []storeDecl + FullFunc []storeDecl + FunctNoComment []storeDecl + Functions []storeDecl + Imports []storeDecl + PackageName string + Types []storeDecl + TypesNoComment []storeDecl + Var []storeDecl + func (d *GoDeclarations) GoSourceGetInfos(filename string, funcName ...string) (err error) + func (d *GoDeclarations) GoSourceGetLines(filename string, wholeWord bool, terms ...string) (exist bool, err error) + type GoSourceFileStructure struct + AstOut *bytes.Buffer + CallExpr []Declaration + Comments []Declaration + EmptyDeclStruct Declaration + EmptySliceDeclStruct []Declaration + Eol string + Filename string + Func []Declaration + Imports []Declaration + Package string + Struct []Declaration + UnImplemented []Declaration + Unknown []Declaration + Var []Declaration + WriteAstToFilename string + func (gsfs *GoSourceFileStructure) GetFuncByName(dName string) (decl *Declaration) + func (gsfs *GoSourceFileStructure) GetFuncPos(fName string) (lStart, lEnd int) + func (gsfs *GoSourceFileStructure) GetStructByName(dName string) (decl *Declaration) + func (gsfs *GoSourceFileStructure) GetVarByName(dName string, kind ...string) (decl *Declaration) + func (gsfs *GoSourceFileStructure) GoSourceFileStructureSetup(filename string, zero ...bool) (err error)