From 969519f55273757d2b4143da389a4a33ea15f104 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 1 Jan 2024 18:58:38 -0600 Subject: [PATCH] make a flat 'spew' version Signed-off-by: Jeff Carr --- args.go | 5 +++++ go.mod | 7 +------ go.sum | 14 -------------- spew.go | 2 +- 4 files changed, 7 insertions(+), 21 deletions(-) diff --git a/args.go b/args.go index 4752f53..4a452d3 100644 --- a/args.go +++ b/args.go @@ -1,5 +1,9 @@ package log +/* +// disable this until it hopefully is adopted by the go lang developers +// TODO: clean alex's dependancies + import ( arg "github.com/alexflint/go-arg" ) @@ -26,3 +30,4 @@ func init() { func ArgDebug() bool { return argLog.LogDebug } +*/ diff --git a/go.mod b/go.mod index d87a21e..8c124e2 100644 --- a/go.mod +++ b/go.mod @@ -2,9 +2,4 @@ module go.wit.com/log go 1.21.4 -require ( - github.com/alexflint/go-arg v1.4.3 - github.com/davecgh/go-spew v1.1.1 -) - -require github.com/alexflint/go-scalar v1.1.0 // indirect +require github.com/davecgh/go-spew v1.1.1 diff --git a/go.sum b/go.sum index 9ef1991..b5e2922 100644 --- a/go.sum +++ b/go.sum @@ -1,16 +1,2 @@ -github.com/alexflint/go-arg v1.4.3 h1:9rwwEBpMXfKQKceuZfYcwuc/7YY7tWJbFsgG5cAU/uo= -github.com/alexflint/go-arg v1.4.3/go.mod h1:3PZ/wp/8HuqRZMUUgu7I+e1qcpUbvmS258mRXkFH4IA= -github.com/alexflint/go-scalar v1.1.0 h1:aaAouLLzI9TChcPXotr6gUhq+Scr8rl0P9P4PnltbhM= -github.com/alexflint/go-scalar v1.1.0/go.mod h1:LoFvNMqS1CPrMVltza4LvnGKhaSpc3oyLEBUZVhhS2o= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/spew.go b/spew.go index 7fa0251..2ea40f0 100644 --- a/spew.go +++ b/spew.go @@ -2,7 +2,7 @@ package log import ( origlog "log" - "github.com/davecgh/go-spew/spew" + "go.wit.com/spew" ) func Spew(b any, a ...any) {