Versions in this module Expand all Collapse all v1 v1.0.0 Sep 11, 2020 Changes in this version + const ErrBadArgumentCount + const ErrBadInvokeKeys + var NodeTypeList = []interface + type ConstantSets struct + Pack constset.Pack + Sets map[semantic.Node]*int + type Functions struct + func NewFunctions(ctx context.Context, api *semantic.API, mappings *semantic.Mappings, ...) (*Functions, error) + func (*Functions) AsSigned(v interface{}) interface{} + func (*Functions) AssertType(v interface{}, expected ...string) (string, error) + func (*Functions) Bitpos(v uint32) int + func (*Functions) GetAnnotation(ty interface{}, name string) *semantic.Annotation + func (*Functions) HasMore(i int, l interface{}) bool + func (*Functions) IndexOf(array interface{}, value interface{}) int + func (*Functions) IsNumericType(t interface{}) bool + func (*Functions) IsNumericValue(v interface{}) bool + func (*Functions) IsStorageType(ty semantic.Type) bool + func (*Functions) Join(slices ...interface{}) []interface{} + func (*Functions) Reverse(in interface{}) interface{} + func (*Functions) Tail(start int, array interface{}) interface{} + func (*Functions) TypeOf(v semantic.Node) (semantic.Type, error) + func (*Functions) UniqueEnumKeys(e *semantic.Enum) ([]*semantic.EnumEntry, error) + func (*Functions) Unpack(v interface{}) interface{} + func (*Functions) WithAnnotation(name string, l interface{}) []interface{} + func (*Functions) WithoutAnnotation(name string, l interface{}) []interface{} + func (Functions) CFieldName(obj interface{}) string + func (Functions) CommandName(obj interface{}) string + func (Functions) Contains(substr string, v ...interface{}) bool + func (Functions) FilterOut(v, from stringList) stringList + func (Functions) GoCommandName(obj interface{}) string + func (Functions) GoPrivateName(obj interface{}) string + func (Functions) GoPublicName(obj interface{}) string + func (Functions) HasPrefix(s string, prefix string) bool + func (Functions) HasSuffix(s string, suffix string) bool + func (Functions) JoinWith(sep string, v ...interface{}) string + func (Functions) Lower(v ...interface{}) stringList + func (Functions) NameOf(obj interface{}) string + func (Functions) ProtoCppName(obj interface{}) string + func (Functions) ProtoGoName(obj interface{}) string + func (Functions) ProtoName(obj interface{}) string + func (Functions) Replace(old string, new string, v ...interface{}) stringList + func (Functions) SplitOn(sep string, v ...interface{}) stringList + func (Functions) SplitPascalCase(v ...interface{}) stringList + func (Functions) SplitUpperCase(v ...interface{}) stringList + func (Functions) Strings(v ...interface{}) stringList + func (Functions) Title(v ...interface{}) stringList + func (Functions) TrimLeft(cutset string, from ...interface{}) stringList + func (Functions) TrimPrefix(prefix string, from ...interface{}) stringList + func (Functions) TrimRight(cutset string, from ...interface{}) stringList + func (Functions) TrimSuffix(suffix string, from ...interface{}) stringList + func (Functions) Untitle(v ...interface{}) stringList + func (Functions) Upper(v ...interface{}) stringList + func (f *Functions) AllCommands(api interface{}) ([]*semantic.Function, error) + func (f *Functions) AllCommandsSorted(api interface{}) ([]*semantic.Function, error) + func (f *Functions) Args(arguments ...interface{}) (interface{}, error) + func (f *Functions) ConstantSetIndex(n semantic.Node) int + func (f *Functions) ConstantSets() constset.Pack + func (f *Functions) Decompose(ty semantic.Type) semantic.Type + func (f *Functions) Error(s string, args ...interface{}) (string, error) + func (f *Functions) ForEach(arr interface{}, m string) (stringList, error) + func (f *Functions) Format(command stringList, value string) (string, error) + func (f *Functions) Global(name string, values ...interface{}) (interface{}, error) + func (f *Functions) GoFmt(value string) (string, error) + func (f *Functions) Inc(name string) (interface{}, error) + func (f *Functions) Include(templates ...string) error + func (f *Functions) IsNil(v interface{}) bool + func (f *Functions) Length(arr interface{}) (int, error) + func (f *Functions) Log(s string, args ...interface{}) string + func (f *Functions) Macro(name string, arguments ...interface{}) (string, error) + func (f *Functions) NewReflow(indent string, value string) (string, error) + func (f *Functions) Node(prefix string, node semantic.Node, arguments ...interface{}) (string, error) + func (f *Functions) Partition(arr interface{}, keyMacro string, num int) (interface{}, error) + func (f *Functions) PartitionByKey(arr interface{}, keyMacro string) (interface{}, error) + func (f *Functions) ProtoType(ty interface{}) string + func (f *Functions) Reflow(indentSize int, value string) (string, error) + func (f *Functions) SNode(prefix string, node semantic.Node, arguments ...interface{}) (string, error) + func (f *Functions) SortBy(arr interface{}, keyMacro string) (interface{}, error) + func (f *Functions) TargetField(e semantic.Expression) interface{} + func (f *Functions) Template(name string, arguments ...interface{}) (string, error) + func (f *Functions) TokenOf(v semantic.Node) string + func (f *Functions) Underlying(ty semantic.Type) semantic.Type + func (f *Functions) Write(fileName string, value string) (string, error) + func (f Functions) SplitEOL(v ...interface{}) stringList + type Options struct + APIFile string + Dir string + Funcs template.FuncMap + Globals []string + Loader func(filename string) ([]byte, error) + Tracer string Incompatible versions in this module v2.0.0+incompatible Jul 8, 2021