package
Version:
v1.1.4
Opens a new window with list of versions in this module.
Published: Jan 1, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Format converts a syntax tree back to the input syntax.
func ToString(ast interface{}) string
ToString converts a syntax tree back to the input syntax,
using Format()
EnumItem represents an enumeration constant.
type EnumType struct {
Items []EnumItem
}
EnumType represents an anonymous enumeration.
NamedType represents a type definition.
StructItem represents a struct field.
StructType represents an anonymous struct.
SumItem represents a sum alternative.
type SumType struct {
Items []SumItem
}
SumType represents an anonymous sum.
Type represents an anonymous type of any kind.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.