utils

package
v0.0.0-...-b128297 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindKey

func FindKey(body types.State, key string, contents *types.Content) string

find key value for types.State

func ForwardToMaster

func ForwardToMaster(master string, data types.State) (string, error)

func IsDir

func IsDir(f string) (bool, error)

func IsFile

func IsFile(f string) (bool, error)

func ListHasString

func ListHasString(list []string, s string) bool

func LsDir

func LsDir(s string) ([]string, error)

GetDirs gets all dir names under a dir

func SlurpFile

func SlurpFile(s string) ([]string, error)

SlurpFile read a file's each line into a string list

Types

This section is empty.

Jump to

Keyboard shortcuts

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