Skip to content

Commit

Permalink
Issue 43 (#46)
Browse files Browse the repository at this point in the history
* Add travis.yml #43

* Fix dep command in travis.yml #43

* Add go vet,goimports and golint #43

* Fix failed golint #43

* fix goimports and golint exclude vendor #43
  • Loading branch information
u5surf authored and pgmsft committed Dec 13, 2018
1 parent a8b80fc commit d50efa8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .travis.yml
@@ -0,0 +1,19 @@
language: go

go:
- "1.11"
- master

before_install:
- go get -t -v ./...
- go get -u golang.org/x/tools/cmd/goimports
- go get -u golang.org/x/lint/golint
- go get github.com/golang/dep/...

install:
- $GOPATH/bin/dep ensure -v
script:
- go test -v -race ./...
- go vet ./...
- goimports -d $(find . -type f -name '*.go' -not -path "./vendor/*")
- golint $(go list ./... | grep -v /vendor/)
2 changes: 1 addition & 1 deletion plt_darwin.go
Expand Up @@ -48,7 +48,7 @@ func getNetDevStats(stats *ethrNetStat) {
}
}

func getTcpStats(stats *ethrNetStat) {
func getTCPStats(stats *ethrNetStat) {
var data C.struct_tcpstat
rawData, err := unix.SysctlRaw("net.inet.tcp.stats")
if err != nil {
Expand Down

0 comments on commit d50efa8

Please sign in to comment.