 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package jy2struct is a library for generating go struct code, supporting json and yaml.
Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  var ForceFloats bool
    ForceFloats whether to force a change to float
Functions ¶
func FmtFieldName ¶
FmtFieldName formats a string as a struct key
Example:
FmtFieldName("foo_id")
Output: FooID
Types ¶
type Args ¶
type Args struct {
	Format    string // document format, json or yaml
	Data      string // json or yaml content
	InputFile string // file
	Name      string // name of structure
	SubStruct bool   // are sub-structures separated
	Tags      string // add additional tags, multiple tags separated by commas
	// contains filtered or unexported fields
}
    Args convert arguments
 Click to show internal directories. 
   Click to hide internal directories.