Skip to content

Commit f45e432

Browse files
committed
Fix examples name convention for godoc, redux.
Case matters here and in a rather unusual way. Signed-off-by: Eric Myhre <hash@exultant.us>
1 parent a49755e commit f45e432

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

example_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/polydawn/refmt/obj/atlas"
1111
)
1212

13-
func ExampleNewMarshaller_JSON() {
13+
func ExampleNewMarshaller_json() {
1414
var buf bytes.Buffer
1515
encoder := refmt.NewMarshaller(json.EncodeOptions{}, &buf)
1616
err := encoder.Marshal(map[string]interface{}{
@@ -25,7 +25,7 @@ func ExampleNewMarshaller_JSON() {
2525
// <nil>
2626
}
2727

28-
func ExampleNewMarshallerAtlased_AutogeneratedAtlas() {
28+
func ExampleNewMarshallerAtlased_autogeneratedAtlas() {
2929
type MyType struct {
3030
X string
3131
Y int
@@ -51,7 +51,7 @@ func ExampleNewMarshallerAtlased_AutogeneratedAtlas() {
5151
// <nil>
5252
}
5353

54-
func ExampleNewMarshallerAtlased_CustomStructMapping() {
54+
func ExampleNewMarshallerAtlased_customStructMapping() {
5555
type MyType struct {
5656
X string
5757
Y int
@@ -79,7 +79,7 @@ func ExampleNewMarshallerAtlased_CustomStructMapping() {
7979
// <nil>
8080
}
8181

82-
func ExampleNewMarshallerAtlased_TransformFuncs() {
82+
func ExampleNewMarshallerAtlased_transformFuncs() {
8383
type MyType struct {
8484
X string
8585
Y string

0 commit comments

Comments
 (0)