diff --git a/spew/Makefile b/Makefile similarity index 100% rename from spew/Makefile rename to Makefile diff --git a/spew/bypass.go b/bypass.go similarity index 100% rename from spew/bypass.go rename to bypass.go diff --git a/spew/bypasssafe.go b/bypasssafe.go similarity index 100% rename from spew/bypasssafe.go rename to bypasssafe.go diff --git a/spew/common.go b/common.go similarity index 100% rename from spew/common.go rename to common.go diff --git a/spew/common_test.go b/common_test.go similarity index 99% rename from spew/common_test.go rename to common_test.go index e551940..459559c 100644 --- a/spew/common_test.go +++ b/common_test.go @@ -21,7 +21,7 @@ import ( "reflect" "testing" - "go.wit.com/dev/davecgh/go-spew/spew" + "go.wit.com/dev/davecgh/spew" ) // custom type to test Stinger interface on non-pointer receiver. diff --git a/spew/config.go b/config.go similarity index 100% rename from spew/config.go rename to config.go diff --git a/spew/doc.go b/doc.go similarity index 100% rename from spew/doc.go rename to doc.go diff --git a/spew/dump.go b/dump.go similarity index 100% rename from spew/dump.go rename to dump.go diff --git a/spew/dump_test.go b/dump_test.go similarity index 99% rename from spew/dump_test.go rename to dump_test.go index bac069c..7606ecc 100644 --- a/spew/dump_test.go +++ b/dump_test.go @@ -67,7 +67,7 @@ import ( "testing" "unsafe" - "go.wit.com/dev/davecgh/go-spew/spew" + "go.wit.com/dev/davecgh/spew" ) // dumpTest is used to describe a test to be performed against the Dump method. diff --git a/spew/dumpcgo_test.go b/dumpcgo_test.go similarity index 98% rename from spew/dumpcgo_test.go rename to dumpcgo_test.go index 94b0a5e..9292e7a 100644 --- a/spew/dumpcgo_test.go +++ b/dumpcgo_test.go @@ -26,7 +26,7 @@ package spew_test import ( "fmt" - "go.wit.com/dev/davecgh/go-spew/spew/testdata" + "go.wit.com/dev/davecgh/spew/testdata" ) func addCgoDumpTests() { diff --git a/spew/dumpnocgo_test.go b/dumpnocgo_test.go similarity index 100% rename from spew/dumpnocgo_test.go rename to dumpnocgo_test.go diff --git a/spew/example_test.go b/example_test.go similarity index 99% rename from spew/example_test.go rename to example_test.go index 5237684..c1aa4a7 100644 --- a/spew/example_test.go +++ b/example_test.go @@ -19,7 +19,7 @@ package spew_test import ( "fmt" - "go.wit.com/dev/davecgh/go-spew/spew" + "go.wit.com/dev/davecgh/spew" ) type Flag int diff --git a/spew/format.go b/format.go similarity index 100% rename from spew/format.go rename to format.go diff --git a/spew/format_test.go b/format_test.go similarity index 99% rename from spew/format_test.go rename to format_test.go index eeb3bc5..d4f44a8 100644 --- a/spew/format_test.go +++ b/format_test.go @@ -72,7 +72,7 @@ import ( "testing" "unsafe" - "go.wit.com/dev/davecgh/go-spew/spew" + "go.wit.com/dev/davecgh/spew" ) // formatterTest is used to describe a test to be performed against NewFormatter. diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..9a692be --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module go.wit.com/dev/davecgh/spew + +go 1.21.4 diff --git a/spew/internal_test.go b/internal_test.go similarity index 100% rename from spew/internal_test.go rename to internal_test.go diff --git a/spew/internalunsafe_test.go b/internalunsafe_test.go similarity index 100% rename from spew/internalunsafe_test.go rename to internalunsafe_test.go diff --git a/spew/spew.go b/spew.go similarity index 100% rename from spew/spew.go rename to spew.go diff --git a/spew/go.mod b/spew/go.mod deleted file mode 100644 index a2912f3..0000000 --- a/spew/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module go.wit.com/dev/davecgh/go-spew/spew - -go 1.21.4 diff --git a/spew/spew_test.go b/spew_test.go similarity index 99% rename from spew/spew_test.go rename to spew_test.go index 522d320..e092e89 100644 --- a/spew/spew_test.go +++ b/spew_test.go @@ -23,7 +23,7 @@ import ( "os" "testing" - "go.wit.com/dev/davecgh/go-spew/spew" + "go.wit.com/dev/davecgh/spew" ) // spewFunc is used to identify which public function of the spew package or diff --git a/spew/testdata/dumpcgo.go b/testdata/dumpcgo.go similarity index 100% rename from spew/testdata/dumpcgo.go rename to testdata/dumpcgo.go