Skip to content

Commit

Permalink
refactor: package name
Browse files Browse the repository at this point in the history
change package name to gons instead of netstat.
  • Loading branch information
jingyuan.chen committed Feb 28, 2023
1 parent 30b5923 commit 20d5a94
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 11 deletions.
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module github.com/d1nfinite/gons

go 1.19

require github.com/bitly/go-simplejson v0.5.0 // indirect
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
github.com/bitly/go-simplejson v0.5.0 h1:6IH+V8/tVMab511d5bn4M7EwGXZf9Hj6i2xSwkNEM+Y=
github.com/bitly/go-simplejson v0.5.0/go.mod h1:cXHtHw4XUPsvGaxgjIAn8PhEWG9NfngEKAMDJEczWVA=
2 changes: 1 addition & 1 deletion netstat_linux.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//go:build linux

package netstat
package gons

import (
"net"
Expand Down
2 changes: 1 addition & 1 deletion netstat_linux_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package netstat
package gons

import (
"fmt"
Expand Down
4 changes: 2 additions & 2 deletions package.go
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Package netstat provide netstat-like functionality in golang
package netstat
// Package gons provide netstat-like functionality in golang
package gons
2 changes: 1 addition & 1 deletion parser_linux.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build linux
// +build linux

package netstat
package gons

import (
"bufio"
Expand Down
2 changes: 1 addition & 1 deletion parser_linux_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//go:build linux

package netstat
package gons

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion process_linux.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//go:build linux

package netstat
package gons

import (
"errors"
Expand Down

0 comments on commit 20d5a94

Please sign in to comment.