Skip to content

Commit

Permalink
reset mod
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkwork committed Mar 12, 2024
1 parent 732fb26 commit 8e47990
Show file tree
Hide file tree
Showing 54 changed files with 378 additions and 318 deletions.
57 changes: 7 additions & 50 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,75 +3,32 @@ module github.com/ddkwork/golibrary
go 1.22

require (
cogentcore.org/core v0.0.8-0.20240312041954-1380c137a49a
github.com/alecthomas/chroma/v2 v2.12.0
github.com/aquasecurity/table v1.8.0
github.com/axgle/mahonia v0.0.0-20180208002826-3358181d7394
github.com/charmbracelet/bubbles v0.18.0
github.com/charmbracelet/bubbletea v0.25.0
github.com/charmbracelet/lipgloss v0.9.1
github.com/dc0d/caseconv v0.5.0
github.com/ddkwork/golibrary/mylog v0.0.0-20240312044711-c971815f0c61
github.com/dop251/goja v0.0.0-20231027120936-b396bb4c349d
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20240118000515-a250818d05e3
cogentcore.org/core v0.0.8-0.20240312043521-bdafc24c3306
github.com/google/uuid v1.4.0
github.com/gorilla/websocket v1.5.1
github.com/hjson/hjson-go v3.3.0+incompatible
github.com/hupe1980/socks v0.0.9
github.com/mattn/go-sqlite3 v1.14.22
github.com/rivo/uniseg v0.4.7
github.com/smallnest/safemap v0.0.0-20221221063619-2e3a9fa0ff20
github.com/stretchr/testify v1.9.0
github.com/zzl/go-win32api/v2 v2.1.0
golang.org/x/exp v0.0.0-20240222234643-814bf88cf225
golang.org/x/image v0.15.0
golang.org/x/sys v0.18.0
golang.org/x/text v0.14.0
)

require (
github.com/Bios-Marcel/wastebasket v0.0.4-0.20240213135800-f26f1ae0a7c4 // indirect
github.com/Masterminds/vcs v1.13.3 // indirect
github.com/anthonynsimon/bild v0.13.0 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/aymerick/douceur v0.2.0 // indirect
github.com/charmbracelet/harmonica v0.2.0 // indirect
github.com/chewxy/math32 v1.10.1 // indirect
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/dlclark/regexp2 v1.10.0 // indirect
github.com/dolthub/maphash v0.0.0-20221220182448-74e1e1ea1577 // indirect
github.com/fatih/color v1.16.0 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20240307211618-a69d953ea142 // indirect
github.com/goki/freetype v1.0.5 // indirect
github.com/goki/vulkan v1.0.7 // indirect
github.com/google/pprof v0.0.0-20231101202521-4ca4178f5c7a // indirect
github.com/gorilla/css v1.0.1 // indirect
github.com/h2non/filetype v1.1.3 // indirect
github.com/hack-pad/go-indexeddb v0.3.2 // indirect
github.com/hack-pad/hackpadfs v0.2.1 // indirect
github.com/hack-pad/safejs v0.1.1 // indirect
github.com/hupe1980/golog v0.0.2 // indirect
github.com/jinzhu/copier v0.4.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/mattn/go-shellwords v1.0.12 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
github.com/muesli/cancelreader v0.2.2 // indirect
github.com/muesli/reflow v0.3.0 // indirect
github.com/muesli/termenv v0.15.2 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/pelletier/go-toml/v2 v2.1.2-0.20240227203013-2b69615b5d55 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/rogpeppe/go-internal v1.12.0 // indirect
golang.org/x/mod v0.15.0 // indirect
github.com/stretchr/testify v1.9.0 // indirect
golang.org/x/image v0.15.0 // indirect
golang.org/x/net v0.22.0 // indirect
golang.org/x/sync v0.6.0 // indirect
golang.org/x/term v0.18.0 // indirect
golang.org/x/tools v0.18.0 // indirect
golang.org/x/sys v0.18.0 // indirect
golang.org/x/text v0.14.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
148 changes: 2 additions & 146 deletions go.sum

Large diffs are not rendered by default.

17 changes: 0 additions & 17 deletions mylog/go.mod

This file was deleted.

19 changes: 0 additions & 19 deletions mylog/go.sum

This file was deleted.

14 changes: 0 additions & 14 deletions safeType/go.mod

This file was deleted.

17 changes: 0 additions & 17 deletions safeType/go.sum

This file was deleted.

4 changes: 2 additions & 2 deletions stream/cmd/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ func Test_cmd(t *testing.T) {
cmd.Run("./a.sh")
cmd.Run("echo 123444 > 1.log")
os.Remove("1.log")
cmd.Run("ping www.baidu.com")
cmd.Run("ping www.baidu.com -t ")
//cmd.Run("ping www.baidu.com")
//cmd.Run("ping www.baidu.com -t ")
}
6 changes: 3 additions & 3 deletions stream/fileAction_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ func WriteGoFile[T safeType.Type](name string, data T) (ok bool) {
return write(name, false, source)
}

func WriteAppend[T safeType.Type](name string, data T) (ok bool) { return write(name, true, data) }
func WriteTruncate[T safeType.Type](name string, data T) (ok bool) { return write(name, false, data) }
func WriteBinaryFile[T safeType.Type](name string, data T) (ok bool) { return write(name, false, data) }
func WriteAppend[T safeType.Type](name string, data T) bool { return write(name, true, data) }
func WriteTruncate[T safeType.Type](name string, data T) bool { return write(name, false, data) }
func WriteBinaryFile[T safeType.Type](name string, data T) bool { return write(name, false, data) }

func write[T safeType.Type](name string, isAppend bool, data T) (ok bool) {
if !CreatDirectory(filepath.Dir(name)) {
Expand Down
57 changes: 57 additions & 0 deletions stream/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
module github.com/ddkwork/golibrary/stream

go 1.22

require (
cogentcore.org/core v0.0.8-0.20240312043521-bdafc24c3306
github.com/aquasecurity/table v1.8.0
github.com/axgle/mahonia v0.0.0-20180208002826-3358181d7394
github.com/charmbracelet/bubbles v0.18.0
github.com/charmbracelet/bubbletea v0.25.0
github.com/charmbracelet/lipgloss v0.10.0
github.com/dc0d/caseconv v0.5.0
github.com/dop251/goja v0.0.0-20240220182346-e401ed450204
github.com/hjson/hjson-go v3.3.0+incompatible
github.com/hupe1980/socks v0.0.9
github.com/mattn/go-sqlite3 v1.14.22
github.com/rivo/uniseg v0.4.7
github.com/stretchr/testify v1.9.0
github.com/zzl/go-win32api/v2 v2.1.0
golang.org/x/exp v0.0.0-20240222234643-814bf88cf225
golang.org/x/image v0.15.0
golang.org/x/sys v0.18.0
golang.org/x/text v0.14.0
)

require (
github.com/anthonynsimon/bild v0.13.0 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/aymerick/douceur v0.2.0 // indirect
github.com/charmbracelet/harmonica v0.2.0 // indirect
github.com/chewxy/math32 v1.10.1 // indirect
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/dlclark/regexp2 v1.10.0 // indirect
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
github.com/goki/freetype v1.0.5 // indirect
github.com/google/pprof v0.0.0-20231101202521-4ca4178f5c7a // indirect
github.com/gorilla/css v1.0.1 // indirect
github.com/hupe1980/golog v0.0.2 // indirect
github.com/jinzhu/copier v0.4.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/mattn/go-shellwords v1.0.12 // indirect
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
github.com/muesli/cancelreader v0.2.2 // indirect
github.com/muesli/reflow v0.3.0 // indirect
github.com/muesli/termenv v0.15.2 // indirect
github.com/pelletier/go-toml/v2 v2.1.2-0.20240227203013-2b69615b5d55 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/rogpeppe/go-internal v1.12.0 // indirect
golang.org/x/net v0.22.0 // indirect
golang.org/x/sync v0.6.0 // indirect
golang.org/x/term v0.18.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 8e47990

Please sign in to comment.