diff options
| author | Hu Keping <hukeping@huawei.com> | 2015-07-22 05:20:12 +0800 |
|---|---|---|
| committer | Hu Keping <hukeping@huawei.com> | 2015-07-22 05:34:13 +0800 |
| commit | 17ce34116af4e8c6b66d0c7906efcae2fd75efc6 (patch) | |
| tree | 8be98a8f4d22d9f837e46b4ea73169101ecbc536 /utils/utils.go | |
| parent | 1e9394103c9dee8fb363ac37695775fbc61b9c2d (diff) | |
| download | docker-17ce34116af4e8c6b66d0c7906efcae2fd75efc6.tar.gz | |
golint: use golint to check package util
Signed-off-by: Hu Keping <hukeping@huawei.com>
Diffstat (limited to 'utils/utils.go')
| -rw-r--r-- | utils/utils.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/utils.go b/utils/utils.go index cb1b7b34cc..57418fda1e 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -19,7 +19,7 @@ import ( "github.com/docker/docker/pkg/stringid" ) -// Figure out the absolute path of our own binary (if it's still around). +// SelfPath figures out the absolute path of our own binary (if it's still around). func SelfPath() string { path, err := exec.LookPath(os.Args[0]) if err != nil { @@ -79,7 +79,7 @@ func isValidDockerInitPath(target string, selfPath string) bool { // target and return dockerversion.INITSHA1 != "" && dockerInitSha1(target) == dockerversion.INITSHA1 } -// Figure out the path of our dockerinit (which may be SelfPath()) +// DockerInitPath figures out the path of our dockerinit (which may be SelfPath()) func DockerInitPath(localCopy string) string { selfPath := SelfPath() if isValidDockerInitPath(selfPath, selfPath) { @@ -157,7 +157,7 @@ func GetCallerName(depth int) string { return callerShortName } -// ReplaceOrAppendValues returns the defaults with the overrides either +// ReplaceOrAppendEnvValues returns the defaults with the overrides either // replaced by env key or appended to the list func ReplaceOrAppendEnvValues(defaults, overrides []string) []string { cache := make(map[string]int, len(defaults)) @@ -239,7 +239,7 @@ func ValidateContextDirectory(srcPath string, excludes []string) error { }) } -// Reads a .dockerignore file and returns the list of file patterns +// ReadDockerIgnore reads a .dockerignore file and returns the list of file patterns // to ignore. Note this will trim whitespace from each line as well // as use GO's "clean" func to get the shortest/cleanest path for each. func ReadDockerIgnore(path string) ([]string, error) { |
