Skip to content

Commit 7396394

Browse files
committed
chore(cleanup): go fmt
1 parent be27ab6 commit 7396394

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

api/server.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ func (s *Server) Markets(w http.ResponseWriter, r *http.Request) {
6767
market.MemeCaption = c
6868
}
6969

70-
7170
if len(m.Content) > 0 {
7271
for i, c := range m.Content {
7372
if c.Text != "" {

common/meme.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ type MemeDataset struct {
55
}
66

77
type Content struct {
8-
X int `json:"x"`
9-
Y int `json:"y"`
10-
Text string `json:"text,omitempty"`
8+
X int `json:"x"`
9+
Y int `json:"y"`
10+
Text string `json:"text,omitempty"`
1111
Image string `json:"image,omitempty"`
1212
}
1313

1414
type Meme struct {
15-
Image string `json:"image"`
16-
Caption string `json:"caption"`
15+
Image string `json:"image"`
16+
Caption string `json:"caption"`
1717
Content []*Content `json:"content"`
1818
}
1919

@@ -25,4 +25,4 @@ type Range struct {
2525
type Coin struct {
2626
Name string `json:"name"`
2727
Ranges []*Range `json:"ranges"`
28-
}
28+
}

common/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type Market struct {
3737

3838
Meme string `json:"meme"`
3939
MemeCaption string `json:"meme_caption"`
40-
MemeContent []*Content `json:"meme_content"`
40+
MemeContent []*Content `json:"meme_content"`
4141
Prices7Days []*ChartPrice `json:"prices_7d"`
4242
}
4343

meme/parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ func formatNumber(f float64) string {
4747
func formatOppositePrice(v, p float64) string {
4848
f := v + (v * ((-1 * p) / 100))
4949
return formatNumber(f)
50-
}
50+
}

0 commit comments

Comments
 (0)