duyong mac 7 miesięcy temu
rodzic
commit
7da9befcdc
6 zmienionych plików z 10 dodań i 9 usunięć
  1. 3 3
      app/app.go
  2. 1 1
      app/options.go
  3. 2 2
      examples/app/main.go
  4. 1 1
      examples/errors/main.go
  5. 2 2
      go.mod
  6. 1 0
      go.sum

+ 3 - 3
app/app.go

@@ -1,9 +1,9 @@
 package app
 
 import (
-	"days-gone/app/flagsets"
-	version2 "days-gone/app/version"
-	"days-gone/logs"
+	"dy-pkg/app/flagsets"
+	version2 "dy-pkg/app/version"
+	"dy-pkg/logs"
 	"fmt"
 	"github.com/fatih/color"
 	"github.com/moby/term"

+ 1 - 1
app/options.go

@@ -1,7 +1,7 @@
 package app
 
 import (
-	"days-gone/app/flagsets"
+	"dy-pkg/app/flagsets"
 )
 
 // CommandLineOptions 从命令行中读取选项参数接口

+ 2 - 2
examples/app/main.go

@@ -1,8 +1,8 @@
 package main
 
 import (
-	"days-gone/app"
-	"days-gone/app/flagsets"
+	"dy-pkg/app"
+	"dy-pkg/app/flagsets"
 	"fmt"
 )
 

+ 1 - 1
examples/errors/main.go

@@ -4,7 +4,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"days-gone/errors"
+	"dy-pkg/errors"
 )
 
 const (

+ 2 - 2
go.mod

@@ -1,10 +1,11 @@
-module days-gone
+module dy-pkg
 
 go 1.19
 
 require (
 	github.com/fatih/color v1.16.0
 	github.com/gosuri/uitable v0.0.4
+	github.com/moby/term v0.5.0
 	github.com/novalagung/gubrak v1.0.0
 	github.com/spf13/cobra v1.8.0
 	github.com/spf13/pflag v1.0.5
@@ -22,7 +23,6 @@ require (
 	github.com/mattn/go-isatty v0.0.20 // indirect
 	github.com/mattn/go-runewidth v0.0.15 // indirect
 	github.com/mitchellh/mapstructure v1.5.0 // indirect
-	github.com/moby/term v0.5.0 // indirect
 	github.com/pelletier/go-toml/v2 v2.1.0 // indirect
 	github.com/rivo/uniseg v0.2.0 // indirect
 	github.com/sagikazarmark/locafero v0.4.0 // indirect

+ 1 - 0
go.sum

@@ -3,6 +3,7 @@ github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1/go.mod h1:xomTg6
 github.com/DefinitelyMod/gocsv v0.0.0-20181205141819-acfa5f112b45 h1:+OD9vawobD89HK04zwMokunBCSEeAb08VWAHPUMg+UE=
 github.com/DefinitelyMod/gocsv v0.0.0-20181205141819-acfa5f112b45/go.mod h1:+nlrAh0au59iC1KN5RA1h1NdiOQYlNOBrbtE1Plqht4=
 github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
+github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY=
 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
 github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
 github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=