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"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
"github.com/k1574/goblin/cat"
|
"goblin/cat"
|
||||||
"github.com/k1574/goblin/echo"
|
"goblin/echo"
|
||||||
"github.com/k1574/goblin/mkdir"
|
"goblin/mkdir"
|
||||||
"github.com/k1574/goblin/gtrue"
|
"goblin/gtrue"
|
||||||
"github.com/k1574/goblin/gfalse"
|
"goblin/gfalse"
|
||||||
"github.com/k1574/goblin/sort"
|
"goblin/sort"
|
||||||
"github.com/k1574/goblin/tac"
|
"goblin/tac"
|
||||||
"github.com/k1574/goblin/ls"
|
"goblin/ls"
|
||||||
"github.com/k1574/goblin/yes"
|
"goblin/yes"
|
||||||
"github.com/k1574/goblin/date"
|
"goblin/date"
|
||||||
"github.com/k1574/goblin/uniq"
|
"goblin/uniq"
|
||||||
"github.com/k1574/goblin/quote"
|
"goblin/quote"
|
||||||
"github.com/k1574/goblin/urlprs"
|
"goblin/urlprs"
|
||||||
"github.com/k1574/goblin/noext"
|
"goblin/noext"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"sort"
|
"sort"
|
||||||
"flag"
|
"flag"
|
||||||
"github.com/jienfak/goblin/input"
|
"goblin/input"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Run(args []string) int {
|
func Run(args []string) int {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import(
|
||||||
"fmt"
|
"fmt"
|
||||||
"flag"
|
"flag"
|
||||||
"strings"
|
"strings"
|
||||||
"github.com/jienfak/goblin/input"
|
"goblin/input"
|
||||||
)
|
)
|
||||||
var(
|
var(
|
||||||
nArg int
|
nArg int
|
||||||
|
|
Loading…
Reference in a new issue