package
0.1.12
Repository: https://github.com/midlang/mid.git
Documentation: pkg.go.dev

# Functions

ApplyMeta creates a target file by the template meta.
CppFormat formats cpp code file.
GeneratePackage generates codes for package.
GoFmt formats go code file.
Init initializes generator NOTE: You MUST initialize generator before using generator buildType is a function for building build.Type to a string plugin is the language plugin config is runtime config of the plugin.
No description provided by the author
NewContext creates a context by buildType,plugin,plugin_config.
No description provided by the author
No description provided by the author
NewTemplate creates a Template by template.Template.
OpenTemplatesDir opens a directory for getting all files and directories.
ParseTemplateFile parses template file.
ParseTemplateFilename parses template filename: <kind>[.suffix[.flags]].temp `kind` maybe `package`,`file`,`const` and other bean kinds like `struct`,`protocol`,`service` etc.

# Constants

IncludesDir contains template files for `include` and `include_template` functions.
TemplateFileSuffix is the template filename suffix could be recognized.

# Structs

Bean wraps build.Bean.
Context holds current context for generating codes of specified package.
File wraps build.File.
GenDecl wraps build.GenDecl.
Group wraps build.Group.
Package wraps build.Package.
Template wraps template.Template.
TemplateMeta represents meta information of a template file.

# Type aliases

No description provided by the author
BuildTypeFunc is a function type which used to build `build.Type` to a string.
No description provided by the author
No description provided by the author