impl

package
v0.0.0-...-c8b6749 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pkg

func Pkg(path string, pkgName string, importMap map[string]string, types []*UnintializedErrorType, outputFileName string)

Pkg generates error related functions for a pkg

Types

type Error

type Error struct {
	TypeName      string
	ErrorTemplate string
	Transparent   bool
	WrapTypes     []string
	Path          string
}

Error represents all information about an error type

type UnintializedErrorType

type UnintializedErrorType struct {
	Node     ast.Node
	Comments []*ast.Comment
}

UnintializedErrorType represents the raw ast items parsed from file

Jump to

Keyboard shortcuts

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