more gofmt -s changes.

This commit is contained in:
Will Charczuk 2016-07-15 13:45:33 -07:00
parent 296ed0fd3b
commit 0defd8dd2a
4 changed files with 11 additions and 11 deletions

View file

@ -16,10 +16,10 @@ func TestAnnotationSeriesMeasure(t *testing.T) {
Show: true,
},
Annotations: []Annotation{
Annotation{X: 1.0, Y: 1.0, Label: "1.0"},
Annotation{X: 2.0, Y: 2.0, Label: "2.0"},
Annotation{X: 3.0, Y: 3.0, Label: "3.0"},
Annotation{X: 4.0, Y: 4.0, Label: "4.0"},
{X: 1.0, Y: 1.0, Label: "1.0"},
{X: 2.0, Y: 2.0, Label: "2.0"},
{X: 3.0, Y: 3.0, Label: "3.0"},
{X: 4.0, Y: 4.0, Label: "4.0"},
},
}
@ -69,10 +69,10 @@ func TestAnnotationSeriesRender(t *testing.T) {
StrokeColor: drawing.ColorBlack,
},
Annotations: []Annotation{
Annotation{X: 1.0, Y: 1.0, Label: "1.0"},
Annotation{X: 2.0, Y: 2.0, Label: "2.0"},
Annotation{X: 3.0, Y: 3.0, Label: "3.0"},
Annotation{X: 4.0, Y: 4.0, Label: "4.0"},
{X: 1.0, Y: 1.0, Label: "1.0"},
{X: 2.0, Y: 2.0, Label: "2.0"},
{X: 3.0, Y: 3.0, Label: "3.0"},
{X: 4.0, Y: 4.0, Label: "4.0"},
},
}

View file

@ -52,7 +52,7 @@ func chartHandler(rc *web.RequestContext) web.ControllerResult {
StrokeColor: chart.GetDefaultSeriesStrokeColor(0),
},
Annotations: []chart.Annotation{
chart.Annotation{
{
X: float64(s1x[len(s1x)-1].Unix()),
Y: s1y[len(s1y)-1],
Label: fmt.Sprintf("%s - %s", "test", chart.FloatValueFormatter(s1y[len(s1y)-1])),

View file

@ -76,7 +76,7 @@ func TestXAxisGetTicksWithUserDefaults(t *testing.T) {
assert.Nil(err)
xa := XAxis{
Ticks: []Tick{Tick{Value: 1.0, Label: "1.0"}},
Ticks: []Tick{{Value: 1.0, Label: "1.0"}},
}
xr := Range{Min: 10, Max: 100, Domain: 1024}
styleDefaults := Style{

View file

@ -76,7 +76,7 @@ func TestYAxisGetTicksWithUserDefaults(t *testing.T) {
assert.Nil(err)
ya := YAxis{
Ticks: []Tick{Tick{Value: 1.0, Label: "1.0"}},
Ticks: []Tick{{Value: 1.0, Label: "1.0"}},
}
yr := Range{Min: 10, Max: 100, Domain: 1024}
styleDefaults := Style{