Documentation ¶
Overview ¶
Package renderer provides a renderer with a custom reporter.
Index ¶
- func SetStructuredErrorsPkgPath(p string)
- type Go
- type Imports
- func (i *Imports) Add(pkgpath string) *gogh.ImportAliasControl
- func (i *Imports) Binary() *gogh.ImportAliasControl
- func (i *Imports) Errors() *gogh.ImportAliasControl
- func (i *Imports) Imports() *gogh.Imports
- func (i *Imports) Module(relpath string) *gogh.ImportAliasControl
- func (i *Imports) Unsafe() *gogh.ImportAliasControl
- func (i *Imports) Varsize() *gogh.ImportAliasControl
- type Package
- type Project
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetStructuredErrorsPkgPath ¶
func SetStructuredErrorsPkgPath(p string)
SetStructuredErrorsPkgPath set structured errors package path. Must be called before the first project initialization.
Types ¶
type Go ¶
type Go = gogh.GoRenderer[*Imports]
type Imports ¶
type Imports struct {
// contains filtered or unexported fields
}
Imports is an extension of gogh.Imports to provide some frequently used imports.
func NewImports ¶
NewImports для конструктора рендерера.
func (*Imports) Add ¶
func (i *Imports) Add(pkgpath string) *gogh.ImportAliasControl
Add to implement gogh.Importer
func (*Imports) Binary ¶
func (i *Imports) Binary() *gogh.ImportAliasControl
Binary импорт пакета binary из стандартной библиотеки.
func (*Imports) Errors ¶
func (i *Imports) Errors() *gogh.ImportAliasControl
Errors structured errors package. It is github.com/sirkon/errors by default. The value can be overrided
func (*Imports) Module ¶
func (i *Imports) Module(relpath string) *gogh.ImportAliasControl
Module to implement gogh.Importer
func (*Imports) Unsafe ¶
func (i *Imports) Unsafe() *gogh.ImportAliasControl
Unsafe импорт пакета unsafe из стандартной библиотеки.
func (*Imports) Varsize ¶
func (i *Imports) Varsize() *gogh.ImportAliasControl
Varsize импорт пакета github.com/sirkon/varsize.
Click to show internal directories.
Click to hide internal directories.