Versions in this module Expand all Collapse all v1 v1.0.0 Nov 23, 2022 Changes in this version + const ErrRepeatParse + func CppImp(pkg string) string + func CppPkg(cf *CodeFile, pkg string) + func GoImp(pkg string) string + func GoPkg(cf *CodeFile, pkg string) + func JavaImp(pkg string) string + func LocalImportable(goPath string) map[string]string + func LocalImptTarget(goPath string, targetPaths ...string) map[string]string + type BlockContainer interface + AddBlock func(format string, a ...interface{}) *CodeBlock + type CFBImpFunc func(pkg string) string + type CFBPkgFunc func(cf *CodeFile, pkg string) + type CodeBlock struct + BlockDef string + BlockEnd string + BlockStart string + func (cb *CodeBlock) AddBlock(format string, a ...interface{}) *CodeBlock + func (cb *CodeBlock) Imports(imports ...string) + func (cb *CodeBlock) IndentationAdd(n int) + func (cb *CodeBlock) Output(oup io.Writer) (int, error) + func (cb *CodeBlock) Write(format string, a ...interface{}) + func (cb *CodeBlock) WriteLine(format string, a ...interface{}) + func (cb *CodeBlock) WriteToNewLine(format string, a ...interface{}) + type CodeFile struct + func NewCodeFile(pkg string, w io.Writer, impFunc CFBImpFunc, pkgFunc CFBPkgFunc, ...) *CodeFile + func NewGoFile(pkg string, w io.Writer, comments ...string) *CodeFile + func (cf *CodeFile) AddBlock(format string, a ...interface{}) *CodeBlock + func (cf *CodeFile) AddImports(imp map[string]string) + func (cf *CodeFile) Import(str string) bool + func (cf *CodeFile) Imports(imps ...string) + func (cf *CodeFile) Output() (int, error) + func (cf *CodeFile) Write(str string) + func (cf *CodeFile) WriteLine(str string)