1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 14:48:55 +00:00

Fix golint errors

This commit is contained in:
Josh Curl
2016-11-28 00:06:00 -08:00
parent fa1dc760f2
commit a7c34b9855
35 changed files with 205 additions and 212 deletions

View File

@@ -18,7 +18,7 @@ import (
)
const (
DOCKER_CGROUPS_FILE = "/proc/self/cgroup"
dockerCgroupsFile = "/proc/self/cgroup"
)
type AnyMap map[interface{}]interface{}
@@ -196,8 +196,8 @@ func TrimSplit(str, sep string) []string {
return TrimSplitN(str, sep, -1)
}
func GetCurrentContainerId() (string, error) {
file, err := os.Open(DOCKER_CGROUPS_FILE)
func GetCurrentContainerID() (string, error) {
file, err := os.Open(dockerCgroupsFile)
if err != nil {
return "", err