paths

package
v0.0.0-...-8a69ae4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var YamlConfigName = ".phraseapp.yml"

Functions

func Exists

func Exists(absPath string) error

func Glob

func Glob(pattern string) (matches []string, err error)

Glob supports * and ** globbing according to https://help.phrase.com/phraseapp-for-developers/phraseapp-client/configuration#globbing

func IsDir

func IsDir(path string) bool

func IsPhraseAppYmlConfig

func IsPhraseAppYmlConfig(path string) bool

func Segments

func Segments(s string) []string

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.

func Validate

func Validate(file, formatName, formatExtension string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL