Versions in this module Expand all Collapse all v0 v0.0.2 Aug 14, 2022 Changes in this version + var ErrStructNotFoundInFile = fmt.Errorf("struct not found in file") + var TemplateFile string + func CheckIfOutputExists(filename string) error + func FindStructInDirectory(directory, structName string) (*ast.StructType, *token.FileSet, string, error) + func FindStructInFile(file, structName string) (structDef *ast.StructType, fset *token.FileSet, pkg string, err error) + func WriteTemplate(w io.Writer, tplInput *TemplateInput) error + type TemplateInput struct + OptionTypeName string + Options []TemplateOption + PackageName string + StructName string + func NewTemplateInput(structDef *ast.StructType, fset *token.FileSet, ...) *TemplateInput + type TemplateOption struct + FieldName string + FieldType string