Documentation ¶
Index ¶
- Variables
- func Assert(ok bool, format string, args ...interface{})
- func GetApp(appName *sysl.AppName, mod *sysl.Module) *sysl.Application
- func GetAppName(appname *sysl.AppName) string
- func GetTypeDetail(t *sysl.Type) (typeName string, typeDetail string)
- func HasPattern(attrs map[string]*sysl.Attribute, pattern string) bool
- func HasSameType(type1 *sysl.Type, type2 *sysl.Type) bool
- func IsSameApp(a *sysl.AppName, b *sysl.AppName) bool
- func IsSameCall(a *sysl.Call, b *sysl.Call) bool
- func PanicOnError(err error)
- func PanicOnErrorf(err error, format string, args ...interface{})
- func TypeBool() *sysl.Type
- func TypeDecimal() *sysl.Type
- func TypeEmpty() *sysl.Type
- func TypeFloat() *sysl.Type
- func TypeInt() *sysl.Type
- func TypeNone() *sysl.Type
- func TypeString() *sysl.Type
- type StrSet
- func (s StrSet) Clone() StrSet
- func (s StrSet) Contains(elem string) bool
- func (s StrSet) Difference(other StrSet) StrSet
- func (s StrSet) Insert(elem string)
- func (s StrSet) Intersection(other StrSet) StrSet
- func (s StrSet) IsSubset(parent StrSet) bool
- func (s StrSet) Remove(elem string)
- func (s StrSet) ToSlice() []string
- func (s StrSet) ToSortedSlice() []string
- func (s StrSet) Union(other StrSet) StrSet
Constants ¶
This section is empty.
Variables ¶
View Source
var LogLevels = map[string]logrus.Level{ "": logrus.ErrorLevel, "off": logrus.ErrorLevel, "debug": logrus.DebugLevel, "info": logrus.InfoLevel, "warn": logrus.WarnLevel, }
LogLevels ... nolint:gochecknoglobals
Functions ¶
func GetAppName ¶
func GetTypeDetail ¶ added in v0.3.0
GetTypeDetail returns name of the type and details in string format
func HasSameType ¶ added in v0.3.0
HasSameType returns true if type 2 matches with type 1
func PanicOnError ¶ added in v0.3.0
func PanicOnError(err error)
func PanicOnErrorf ¶ added in v0.3.0
Types ¶
type StrSet ¶ added in v0.3.0
type StrSet map[string]struct{}
func MakeStrSet ¶ added in v0.3.0
func MakeStrSetFromActionStatement ¶ added in v0.3.0
func MakeStrSetFromAttr ¶ added in v0.3.0
func (StrSet) Difference ¶ added in v0.3.0
Returns the elements that only belong to s. If s is subset of other, it would return an empty set. Just be aware that output may be one of the inputs and when change the output, the input would also be changed.
func (StrSet) Intersection ¶ added in v0.3.0
func (StrSet) ToSortedSlice ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.