diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-02-07 15:31:09 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-02-09 15:01:34 +0000 |
commit | 86d549f2cdaf22e07017d04c9eb0afbbf4475934 (patch) | |
tree | 228167ac26e3ac88cfb82ef3c00b1e971bec8968 /libpod/container_internal.go | |
parent | 19840e0b3d3f3e4389152c8e96cfe92f68d024eb (diff) | |
download | podman-86d549f2cdaf22e07017d04c9eb0afbbf4475934.tar.gz podman-86d549f2cdaf22e07017d04c9eb0afbbf4475934.tar.bz2 podman-86d549f2cdaf22e07017d04c9eb0afbbf4475934.zip |
Fix gofmt and lint
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes: #268
Approved by: rhatdan
Diffstat (limited to 'libpod/container_internal.go')
-rw-r--r-- | libpod/container_internal.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libpod/container_internal.go b/libpod/container_internal.go index d434630a3..858cf3cbe 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -424,7 +424,7 @@ func (c *Container) WriteStringToRundir(destFile, output string) (string, error) return destFileName, nil } -type resolv struct { +type resolvConf struct { nameServers []string searchDomains []string options []string @@ -477,8 +477,8 @@ func (c *Container) generateResolvConf() (string, error) { } // createResolv creates a resolv struct from an input string -func createResolv(input string) resolv { - var resolv resolv +func createResolv(input string) resolvConf { + var resolv resolvConf for _, line := range strings.Split(input, "\n") { if strings.HasPrefix(line, "search") { fields := strings.Fields(line) @@ -507,7 +507,7 @@ func createResolv(input string) resolv { } //ToString returns a resolv struct in the form of a resolv.conf -func (r resolv) ToString() string { +func (r resolvConf) ToString() string { var result string // Populate the output string with search domains result += fmt.Sprintf("search %s\n", strings.Join(r.searchDomains, " ")) |