file

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src, dst string) (byteCount int64, err error)

func Generate

func Generate(sourceTemplatePath, destinationPath string, replacementMap map[string]string) (err error)

func ListDir

func ListDir(dirPath string) (fileNames []string, err error)

func ReadLines

func ReadLines(fileName string) (lines []string, err error)

func ReadText

func ReadText(fileName string) (text string, err error)

func ReadYaml added in v0.8.0

func ReadYaml(fileName string) (node *yaml.Node, err error)

func WriteLines

func WriteLines(fileName string, lines []string, fileMode os.FileMode) (err error)

func WriteText

func WriteText(fileName string, text string, fileMode os.FileMode) (err error)

func WriteYaml added in v0.8.0

func WriteYaml(fileName string, node *yaml.Node, fileMode os.FileMode, yamlLinesPreprocessors []YamlLinesPreprocessors) (err error)

func YamlAddLineBreakForTwoSpaceIndented added in v0.8.0

func YamlAddLineBreakForTwoSpaceIndented(yamlLines []string) (newYamlLines []string)

func YamlFixEmoji added in v0.8.0

func YamlFixEmoji(yamlLines []string) (newYamlLines []string)

func YamlTwoSpace added in v0.8.0

func YamlTwoSpace(yamlLines []string) (newYamlLines []string)

Types

type YamlLinesPreprocessors added in v0.8.0

type YamlLinesPreprocessors func([]string) []string

Jump to

Keyboard shortcuts

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