README ¶ codegen codegen reads JSON descriptions of HTML elements and attributes, and generates Go functions to create them. The input file consists of a JSON object like the following, which includes all options for attribute types and element voidnesss: { "elements": [ {"name": "div"}, {"name": "img", "void": true}, ], "attributes": [ {"name": "src", "type": "string"}, {"name": "disabled", "type": "bool"} ] } The "void" key can be omitted from an element definition and defaults to false. Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files codegen.go Click to show internal directories. Click to hide internal directories.