Documentation ¶
Overview ¶
Package printer prints generated code into go files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidData = errors.New("invalid data")
ErrInvalidData is generic error returns when printer got unexpected data.
Functions ¶
func ExtractImportPathFromPath ¶
ExtractImportPathFromPath returns right part of the abs path from first part of the import path. Also returns the last element of the abs path as a package name.
func GetFirstLine ¶
GetFirstLine returns first line of the text.
func SetStringIfEmpty ¶
SetStringIfEmpty sets string value into pointer of string if target value is empty.
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.