Fixed to use new modules system of Golang.
This commit is contained in:
parent
458f129260
commit
4aeeb5fefa
5 changed files with 22 additions and 16 deletions
4
go.mod
Normal file
4
go.mod
Normal file
|
@ -0,0 +1,4 @@
|
|||
module goblin
|
||||
|
||||
go 1.16
|
||||
|
2
go.sum
Normal file
2
go.sum
Normal file
|
@ -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=
|
28
goblin.go
28
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() {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"os"
|
||||
"sort"
|
||||
"flag"
|
||||
"github.com/jienfak/goblin/input"
|
||||
"goblin/input"
|
||||
)
|
||||
|
||||
func Run(args []string) int {
|
||||
|
|
|
@ -6,7 +6,7 @@ import(
|
|||
"fmt"
|
||||
"flag"
|
||||
"strings"
|
||||
"github.com/jienfak/goblin/input"
|
||||
"goblin/input"
|
||||
)
|
||||
var(
|
||||
nArg int
|
||||
|
|
Loading…
Reference in a new issue