Documentation ¶
Overview ¶
Package writer provides a writer that allows converting a file.File to Go code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { // IdentPrefix is the prefix corgi puts in front of an identifier. // // It defaults to "__corgi_". IdentPrefix string AllowedFilters []string AllowAllFilters bool // CLI indicates that this writer is run by the corgi CLI and may reference // CLI options in error messages, and print to stderr on its own. CLI bool // CorgierrPretty are the [corgierr.PrettyOptions] used to print pretty // errors. // // Only used if CLI is true. CorgierrPretty corgierr.PrettyOptions // Debug, if set to true, attaches file and position information of scope // items to the generated file. Debug bool }
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) GenerateFile ¶
Click to show internal directories.
Click to hide internal directories.