Documentation ¶
Index ¶
- Variables
- func Exists(absPath string) error
- func Glob(pattern string) (matches []string, err error)
- func IsDir(path string) bool
- func IsPhraseAppYmlConfig(path string) bool
- func Segments(s string) []string
- func SplitAtDirGlobOperator(path, pattern string) (pathStart, patternStart, pathEnd, patternEnd string, err error)
- func Validate(file, formatName, formatExtension string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var YamlConfigName = ".phraseapp.yml"
Functions ¶
func Glob ¶
Glob supports * and ** globbing according to https://help.phrase.com/phraseapp-for-developers/phraseapp-client/configuration#globbing
func IsPhraseAppYmlConfig ¶
func SplitAtDirGlobOperator ¶
func SplitAtDirGlobOperator(path, pattern string) (pathStart, patternStart, pathEnd, patternEnd string, err error)
SplitAtDirGlobOperator splits pattern at the '**' operator, if it's contained, then splits path accordingly, dropping the segments that the '**' operator would have matched against. The returned paths will match the returned patterns. An error is returned if the '**' operator is incorrectly used in pattern.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.