Making code formatting consistent.

$ gofmt -s -w  && goimports -w
This commit is contained in:
Tomás Senart
2014-03-27 14:19:08 +01:00
parent 1f10c4d352
commit b6053d6a86
16 changed files with 62 additions and 58 deletions

View File

@@ -46,7 +46,7 @@ func NewRegistry(s store.Store) *Registry {
// Peers returns a list of cached peer names.
func (r *Registry) Peers() []string {
names := make([]string, 0, len(r.peers))
for name, _ := range r.peers {
for name := range r.peers {
names = append(names, name)
}
sort.Sort(sort.StringSlice(names))
@@ -56,7 +56,7 @@ func (r *Registry) Peers() []string {
// Proxies returns a list of cached proxy names.
func (r *Registry) Proxies() []string {
names := make([]string, 0, len(r.proxies))
for name, _ := range r.proxies {
for name := range r.proxies {
names = append(names, name)
}
sort.Sort(sort.StringSlice(names))

View File

@@ -1,8 +1,9 @@
package v1
import (
"github.com/coreos/etcd/third_party/github.com/gorilla/mux"
"net/http"
"github.com/coreos/etcd/third_party/github.com/gorilla/mux"
)
// Removes a key from the store.

View File

@@ -1,9 +1,10 @@
package v1
import (
"net/http"
"github.com/coreos/etcd/store"
"github.com/coreos/etcd/third_party/github.com/goraft/raft"
"net/http"
)
// The Server interface provides all the methods required for the v1 API.

View File

@@ -1,9 +1,10 @@
package v2
import (
"net/http"
"github.com/coreos/etcd/store"
"github.com/coreos/etcd/third_party/github.com/goraft/raft"
"net/http"
)
// The Server interface provides all the methods required for the v2 API.