Documentation ¶
Index ¶
- Variables
- func CreateContext(templateFile FileMeta, outputFile string, types Tuples, others Pairs, ...) map[string]interface{}
- func Debug(msg string, args ...interface{})
- func Fail(args ...interface{})
- func FindTemplateArg(tpl string, args []string) (string, []string)
- func Progress(msg string, args ...interface{})
- func SplitKeyValArgs(args []string) (Tuples, Pairs, []string)
- type FileMeta
- type OS
- type Pair
- type Pairs
- type RichString
- func (rs RichString) DivideLastOr0(c byte) (RichString, RichString)
- func (rs RichString) DivideLastOr1(c byte) (RichString, RichString)
- func (rs RichString) FirstLower() RichString
- func (rs RichString) FirstUpper() RichString
- func (rs RichString) IndexByte(b byte) int
- func (rs RichString) L() RichString
- func (rs RichString) LastIndexByte(b byte) int
- func (rs RichString) NoDots() RichString
- func (rs RichString) RemoveBeforeLast(c byte) RichString
- func (rs RichString) String() string
- func (rs RichString) ToLower() RichString
- func (rs RichString) ToTitle() RichString
- func (rs RichString) ToUpper() RichString
- func (rs RichString) U() RichString
- type Strings
- type Tuple
- type Tuples
- type Type
Constants ¶
This section is empty.
Variables ¶
var Dbg = false
var ShowContextInfo = false
var Verbose = false
Functions ¶
func CreateContext ¶
Types ¶
type FileMeta ¶
func EmbeddedFileMeta ¶
func NewFileMeta ¶
func SingleFileMeta ¶
func YoungestFile ¶
type Pair ¶
type Pair struct { Key string Val RichString }
type RichString ¶
type RichString string
func (RichString) DivideLastOr0 ¶
func (rs RichString) DivideLastOr0(c byte) (RichString, RichString)
func (RichString) DivideLastOr1 ¶
func (rs RichString) DivideLastOr1(c byte) (RichString, RichString)
func (RichString) FirstLower ¶
func (rs RichString) FirstLower() RichString
FirstLower returns a copy of the string rs with the first letter mapped to lower case.
func (RichString) FirstUpper ¶
func (rs RichString) FirstUpper() RichString
FirstUpper returns a copy of the string rs with the first letter mapped to upper case.
func (RichString) IndexByte ¶
func (rs RichString) IndexByte(b byte) int
IndexByte returns the index of the first instance of c in rs, or -1 if c is not present in rs.
func (RichString) LastIndexByte ¶
func (rs RichString) LastIndexByte(b byte) int
LastIndexByte returns the index of the last instance of c in rs, or -1 if c is not present in rs.
func (RichString) NoDots ¶
func (rs RichString) NoDots() RichString
NoDots returns a copy of rs in which all dots have been removed.
func (RichString) RemoveBeforeLast ¶
func (rs RichString) RemoveBeforeLast(c byte) RichString
RemoveBeforeLast finds the last occurrence of byte c and retains everything after it.
func (RichString) String ¶
func (rs RichString) String() string
func (RichString) ToLower ¶
func (rs RichString) ToLower() RichString
ToLower returns a copy of the string rs with all Unicode letters mapped to their lower case.
func (RichString) ToTitle ¶
func (rs RichString) ToTitle() RichString
ToTitle returns a copy of the string rs with all Unicode letters mapped to their title case.
func (RichString) ToUpper ¶
func (rs RichString) ToUpper() RichString
ToUpper returns a copy of the string rs with all Unicode letters mapped to their upper case.
type Strings ¶
type Strings []RichString
type Type ¶
type Type struct {
// contains filtered or unexported fields
}
func (Type) Ident ¶
func (t Type) Ident() RichString
func (Type) L ¶
func (t Type) L() RichString
func (Type) U ¶
func (t Type) U() RichString