From 4aeeb5fefa08ac019723bacb3b0170699e2c299b Mon Sep 17 00:00:00 2001 From: k1574 Date: Sun, 9 May 2021 19:05:14 +0500 Subject: [PATCH] Fixed to use new modules system of Golang. --- go.mod | 4 ++++ go.sum | 2 ++ goblin.go | 28 ++++++++++++++-------------- sort/sort.go | 2 +- yes/yes.go | 2 +- 5 files changed, 22 insertions(+), 16 deletions(-) create mode 100644 go.mod create mode 100644 go.sum diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..c3dea66 --- /dev/null +++ b/go.mod @@ -0,0 +1,4 @@ +module goblin + +go 1.16 + diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..cc09fc4 --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/jienfak/goblin v0.0.0-20200524232316-580d70cbe1ba h1:wCB3lb+yf83W65Ol1l17vSmWSrGuCW38JY4Z3XH+Pv8= +github.com/jienfak/goblin v0.0.0-20200524232316-580d70cbe1ba/go.mod h1:u1tkXwykxJiJntXSR8Cd96cVL6jJeaPjva3tnG8e5aw= diff --git a/goblin.go b/goblin.go index cd5956c..5f1139d 100644 --- a/goblin.go +++ b/goblin.go @@ -4,20 +4,20 @@ import( "fmt" "os" "path" - "github.com/k1574/goblin/cat" - "github.com/k1574/goblin/echo" - "github.com/k1574/goblin/mkdir" - "github.com/k1574/goblin/gtrue" - "github.com/k1574/goblin/gfalse" - "github.com/k1574/goblin/sort" - "github.com/k1574/goblin/tac" - "github.com/k1574/goblin/ls" - "github.com/k1574/goblin/yes" - "github.com/k1574/goblin/date" - "github.com/k1574/goblin/uniq" - "github.com/k1574/goblin/quote" - "github.com/k1574/goblin/urlprs" - "github.com/k1574/goblin/noext" + "goblin/cat" + "goblin/echo" + "goblin/mkdir" + "goblin/gtrue" + "goblin/gfalse" + "goblin/sort" + "goblin/tac" + "goblin/ls" + "goblin/yes" + "goblin/date" + "goblin/uniq" + "goblin/quote" + "goblin/urlprs" + "goblin/noext" ) func main() { diff --git a/sort/sort.go b/sort/sort.go index 3fa3620..a78a6eb 100644 --- a/sort/sort.go +++ b/sort/sort.go @@ -5,7 +5,7 @@ import ( "os" "sort" "flag" - "github.com/jienfak/goblin/input" + "goblin/input" ) func Run(args []string) int { diff --git a/yes/yes.go b/yes/yes.go index 515ed58..bbd2576 100644 --- a/yes/yes.go +++ b/yes/yes.go @@ -6,7 +6,7 @@ import( "fmt" "flag" "strings" - "github.com/jienfak/goblin/input" + "goblin/input" ) var( nArg int