Documentation ¶
Index ¶
- func Exists(name string) bool
- func ExtractDirective(data string, reqName string) (estData, settingsName, settingsValue string, ok bool)
- func ExtractLine(s string) (line, est string)
- func GetBlockData(data string) (estData string, blockData string)
- func GetLine(s string) string
- func IndexMulti(s string, seps []string) (i int, sep int)
- func IsOverwriteSafe(fn string) bool
- func Produce(fn string)
- func ProduceStr(data string) string
- func ReplaceMulti(s string, old, new []string) (r string)
- func SplitExt(path string) (base, ext string)
- func SplitToBlocks(data string) []block
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractDirective ¶
func ExtractDirective(data string, reqName string) (estData, settingsName, settingsValue string, ok bool)
reqName may be empty
func GetBlockData ¶
func IndexMulti ¶
TODO move to other package Index returns the index of the first instance of any seps in s and founded sep (its index in seps), or (-1,-1) if seps are not present in s.
func IsOverwriteSafe ¶
func ProduceStr ¶
func ReplaceMulti ¶
TODO move to other package Replace returns a copy of the string s with non-overlapping instances of old elements replaced by corresponding new elements. If len(old) != len(new) => panic if len(old[i])==0 => panic If old is empty, Replace return s as-is.
func SplitToBlocks ¶
func SplitToBlocks(data string) []block
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.