utils

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2016 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsString added in v0.6.0

func ContainsString(array []string, element string) bool

ContainsString checks if array contains string

func GetRegion added in v0.6.0

func GetRegion(profile string) (string, error)

GetRegion attempts loading the AWS region from ~/.aws.config.

func LoadFiles added in v0.5.0

func LoadFiles(root string, ignoredPatterns []string) (files []string, err error)

LoadFiles return filtered map of relative to 'root' file paths; for filtering it uses shell file name pattern matching

func ReadIgnoreFile added in v0.5.0

func ReadIgnoreFile(dir string) ([]string, error)

ReadIgnoreFile reads .apexignore in `dir` when present and returns a list of patterns.

func Sha256

func Sha256(b []byte) string

Sha256 returns a base64 encoded SHA256 hash of `b`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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