Documentation ¶
Overview ¶
package printer prints out sysl datamodels back to source code using the Printer struct. Source code does not have complete fidelity, and elements will be printed out in alphabetical order.
Index ¶
- Constants
- func Action(w io.Writer, a *sysl.Action)
- func Application(w io.Writer, a *sysl.Application)
- func Attrs(w io.Writer, key string, a *sysl.Attribute, indentNum int, trim bool)
- func Call(w io.Writer, c *sysl.Call)
- func Endpoint(w io.Writer, e *sysl.Endpoint)
- func EnumDecl(w io.Writer, key string, t *sysl.Type)
- func GetPatterns(attrs map[string]*sysl.Attribute) []string
- func Module(w io.Writer, mod *sysl.Module)
- func NonEnumDecl(w io.Writer, key string, t *sysl.Type)
- func Param(w io.Writer, params []*sysl.Param)
- func Patterns(w io.Writer, attrs map[string]*sysl.Attribute)
- func Return(w io.Writer, r *sysl.Return)
- func Statement(w io.Writer, s *sysl.Statement)
- func Type(param *sysl.Param) string
- func TypeDecl(w io.Writer, key string, t *sysl.Type)
Constants ¶
View Source
const ( APPLICATIONINDENT = 4 ENDPOINTINDENT = 8 TYPEINDENT = 12 MAXLINE = 80 )
Variables ¶
This section is empty.
Functions ¶
func Application ¶ added in v0.84.0
func Application(w io.Writer, a *sysl.Application)
Application prints applications: App:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.