Documentation
¶
Index ¶
- Variables
- func EditDistance(a, b []string) int
- func MyIP() (string, error)
- func Open(path string) (afero.File, error)
- func ShortUUID(uuid string) string
- func StrSliceEqual(x, y []string) bool
- func StrStrMapEqual(x, y map[string]string) bool
- func ToTar(name string, permissions int, content string) (io.Reader, error)
- func WriteFile(filename string, data []byte, perm os.FileMode) error
- type Formatter
Constants ¶
This section is empty.
Variables ¶
View Source
var AppFs = afero.NewOsFs()
AppFs is an aero filesystem. It is stored in a variable so that we can replace it with in-memory filesystems for unit tests.
Functions ¶
func EditDistance ¶
EditDistance returns the number of strings that are in exclusively `a` or `b`.
func MyIP ¶
MyIP gets the local systems Public IP address as visible on the WAN by querying an exeternal service.
func StrSliceEqual ¶
StrSliceEqual returns true of the string slices 'x' and 'y' are identical.
func StrStrMapEqual ¶
StrStrMapEqual returns true of the string->string maps 'x' and 'y' are equal.
Types ¶
Click to show internal directories.
Click to hide internal directories.