used gofmt with -s flag on whole project

This commit is contained in:
tegk
2019-11-01 15:07:53 +00:00
parent 0aa01b2ebf
commit f88518d994
26 changed files with 65 additions and 65 deletions

View File

@@ -6,13 +6,13 @@ import (
func TestEncoding(t *testing.T) {
testData := []*mdnsTxt{
&mdnsTxt{
{
Version: "1.0.0",
Metadata: map[string]string{
"foo": "bar",
},
Endpoints: []*Endpoint{
&Endpoint{
{
Name: "endpoint1",
Request: &Value{
Name: "request",

View File

@@ -7,11 +7,11 @@ import (
func TestMDNS(t *testing.T) {
testData := []*Service{
&Service{
{
Name: "test1",
Version: "1.0.1",
Nodes: []*Node{
&Node{
{
Id: "test1-1",
Address: "10.0.0.1:10001",
Metadata: map[string]string{
@@ -20,11 +20,11 @@ func TestMDNS(t *testing.T) {
},
},
},
&Service{
{
Name: "test2",
Version: "1.0.2",
Nodes: []*Node{
&Node{
{
Id: "test2-1",
Address: "10.0.0.2:10002",
Metadata: map[string]string{
@@ -33,11 +33,11 @@ func TestMDNS(t *testing.T) {
},
},
},
&Service{
{
Name: "test3",
Version: "1.0.3",
Nodes: []*Node{
&Node{
{
Id: "test3-1",
Address: "10.0.0.3:10003",
Metadata: map[string]string{

View File

@@ -8,7 +8,7 @@ import (
var (
testData = map[string][]*registry.Service{
"foo": []*registry.Service{
"foo": {
{
Name: "foo",
Version: "1.0.0",
@@ -44,7 +44,7 @@ var (
},
},
},
"bar": []*registry.Service{
"bar": {
{
Name: "bar",
Version: "default",

View File

@@ -6,11 +6,11 @@ import (
func TestWatcher(t *testing.T) {
testData := []*Service{
&Service{
{
Name: "test1",
Version: "1.0.1",
Nodes: []*Node{
&Node{
{
Id: "test1-1",
Address: "10.0.0.1:10001",
Metadata: map[string]string{
@@ -19,11 +19,11 @@ func TestWatcher(t *testing.T) {
},
},
},
&Service{
{
Name: "test2",
Version: "1.0.2",
Nodes: []*Node{
&Node{
{
Id: "test2-1",
Address: "10.0.0.2:10002",
Metadata: map[string]string{
@@ -32,11 +32,11 @@ func TestWatcher(t *testing.T) {
},
},
},
&Service{
{
Name: "test3",
Version: "1.0.3",
Nodes: []*Node{
&Node{
{
Id: "test3-1",
Address: "10.0.0.3:10003",
Metadata: map[string]string{