From 460dbd4c68e948d758499c448af4c4d7437c406b Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Fri, 13 Dec 2024 14:04:58 +0200 Subject: [PATCH] Fix displaying testable example on pkg.go.dev --- .../example_marshaling_test.go => example_marshaling_test.go | 0 test/example/example_query_test.go => example_query_test.go | 0 test/example/example_test.go => example_test.go | 2 -- ...e_text_marshaling_test.go => example_text_marshaling_test.go | 0 4 files changed, 2 deletions(-) rename test/example/example_marshaling_test.go => example_marshaling_test.go (100%) rename test/example/example_query_test.go => example_query_test.go (100%) rename test/example/example_test.go => example_test.go (99%) rename test/example/example_text_marshaling_test.go => example_text_marshaling_test.go (100%) diff --git a/test/example/example_marshaling_test.go b/example_marshaling_test.go similarity index 100% rename from test/example/example_marshaling_test.go rename to example_marshaling_test.go diff --git a/test/example/example_query_test.go b/example_query_test.go similarity index 100% rename from test/example/example_query_test.go rename to example_query_test.go diff --git a/test/example/example_test.go b/example_test.go similarity index 99% rename from test/example/example_test.go rename to example_test.go index da65764a..72c47556 100644 --- a/test/example/example_test.go +++ b/example_test.go @@ -274,7 +274,6 @@ func ExampleIndent() { // =] } -/* func ExampleMarshalIndent() { data := map[string]int{ "a": 1, @@ -293,7 +292,6 @@ func ExampleMarshalIndent() { // "b": 2 // } } -*/ func ExampleValid() { goodJSON := `{"example": 1}` diff --git a/test/example/example_text_marshaling_test.go b/example_text_marshaling_test.go similarity index 100% rename from test/example/example_text_marshaling_test.go rename to example_text_marshaling_test.go