renderer

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package renderer provides a renderer with a custom reporter.

Index

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

func NewImports(imp *gogh.Imports) *Imports

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) Imports

func (i *Imports) Imports() *gogh.Imports

Imports дto implement gogh.Importer

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.

type Package

type Package = gogh.Package[*Imports]

type Project

type Project = gogh.Module[*Imports]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL