Skip to content
Permalink
Browse files

Update examples in godoc

  • Loading branch information...
jszwec committed Feb 6, 2018
1 parent 0f97556 commit d6588e3d66e358c0648464357246fc1c4a550451
Showing with 5 additions and 5 deletions.
  1. +2 −2 example_decoder_test.go
  2. +2 −2 example_encoder_test.go
  3. +1 −1 example_unmarshal_test.go
@@ -10,7 +10,7 @@ import (
"github.com/jszwec/csvutil"
)

func ExampleDecoder_decode() {
func ExampleDecoder_Decode() {
type User struct {
ID *int `csv:"id,omitempty"`
Name string `csv:"name"`
@@ -45,7 +45,7 @@ id,name,age,city
// [{<nil> alice la 25} {<nil> bob ny 30}]
}

func ExampleDecoder_decodeUnusedColumns() {
func ExampleDecoder_Unused() {
type User struct {
Name string `csv:"name"`
City string `csv:"city"`
@@ -8,7 +8,7 @@ import (
"github.com/jszwec/csvutil"
)

func ExampleEncoder_encode() {
func ExampleEncoder_Encode() {
type Address struct {
City string
Country string
@@ -50,7 +50,7 @@ func ExampleEncoder_encode() {
// Alice,SF,USA,
}

func ExampleEncoder_encodeHeader() {
func ExampleEncoder_EncodeHeader() {
type User struct {
Name string
Age int `csv:"age,omitempty"`
@@ -6,7 +6,7 @@ import (
"github.com/jszwec/csvutil"
)

func ExampleDecoder_unmarshal() {
func ExampleUnmarshal() {
var csvInput = []byte(`
name,age
jacek,26

0 comments on commit d6588e3

Please sign in to comment.
You can’t perform that action at this time.