Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ccc5d2a

Browse files
committed
gofmt -s
1 parent c0565b7 commit ccc5d2a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

install.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set GOPATH=%~dp0
1313

1414
if not exist log mkdir log
1515

16-
gofmt -w src
16+
gofmt -w -s src
1717

1818
go install server/studygolang
1919
go install server/indexer

install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ if [ ! -d log ]; then
1515
mkdir log
1616
fi
1717

18+
gofmt -w -s src
19+
1820
BUILD="`git symbolic-ref HEAD | cut -b 12-`-`git rev-parse HEAD`"
1921

2022
go install -ldflags "-X global.Build="$BUILD server/studygolang

src/util/convert_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ type model struct {
1818

1919
func TestModels2Intslice(t *testing.T) {
2020
models := []*model{
21-
&model{12, "polaris"},
22-
&model{13, "xuxinhua"},
21+
{12, "polaris"},
22+
{13, "xuxinhua"},
2323
}
2424

2525
actualResult := Models2Intslice(models, "Id")

0 commit comments

Comments
 (0)