Skip to content

Commit

Permalink
Edited readme, added usage info
Browse files Browse the repository at this point in the history
  • Loading branch information
karantin2020 committed May 14, 2017
1 parent b16e474 commit 1e342d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,11 @@ Generated functions MarshallCSV and UnmarshallCSV process builtin types,
call MarshallCSV and UnmarshallCSV for custom types
and process pointer types assuming that pointers were initiated (memory is
allocated).

So you have to verify data structures for null pointers before marshalling
and unmarshalling to prevent SEGFAULT
and unmarshalling to prevent SEGFAULT

### Usage

go build -o csvgen csvgen.go
go generate // For example usage
3 changes: 2 additions & 1 deletion csvgen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import (
"github.com/karantin2020/csvgen/parser"
)

//go:generate ./csvgen -p test -s tests -f tests/fixture/test.go -o test
//go:generate ./csvgen -p tests -s tests -f tests/fixture/test.go -o test
//go:generate ./csvgen -f tests/fixture

func Test_main(t *testing.T) {
tests := []struct {
Expand Down

0 comments on commit 1e342d5

Please sign in to comment.