Skip to content

Commit

Permalink
增加输出选项
Browse files Browse the repository at this point in the history
  • Loading branch information
swxctx committed Dec 21, 2018
1 parent fc51d64 commit a2f6bfd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion json2go.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,16 @@ type xjson struct {
Parent map[string]interface{}
Sub []map[int]string
Out []string
// json文件,默认json2go.json
JsonFile string
// 输出类型[print file],默认print
OutType string
// 输出文件,默认json2go_types.go
OutFile string
}

// New returns a new xjson
func New(name, msg string) *xjson {
func new(name, msg string) *xjson {
return &xjson{
Name: name,
Msg: msg,
Expand Down

0 comments on commit a2f6bfd

Please sign in to comment.