mirror of
https://github.com/coredns/coredns.git
synced 2025-12-07 10:55:17 -05:00
cleanups: go vet/golint (#331)
Go vet and golint the new code once again. Drop Name from NameTemplate - it's cleaner: nametemplate.Template.
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
||||
|
||||
// New create a new proxy with the hosts in host and a Random policy.
|
||||
func New(hosts []string) Proxy {
|
||||
p := Proxy{Next: nil, Client: NewClient()}
|
||||
p := Proxy{Next: nil, Client: newClient()}
|
||||
|
||||
upstream := &staticUpstream{
|
||||
from: "",
|
||||
|
||||
Reference in New Issue
Block a user