global

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorConstructor *gotype.Func
	ErrorAggregator  *gotype.Type
)

Functions

func Init

func Init(cfg config.Config, a *search.AST) error

func Unset

func Unset()

used by tests

Types

type Error

type Error struct {
	C ErrorCode
	// contains filtered or unexported fields
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) ObjId

func (e *Error) ObjId() string

func (*Error) Object

func (e *Error) Object() string

func (*Error) OriginalError

func (e *Error) OriginalError() string

func (*Error) Type

func (e *Error) Type() string

type ErrorCode

type ErrorCode uint
const (
	ERR_OBJECT_SEARCH            ErrorCode // searching for object failed
	ERR_ERROR_CONSTRUCTOR_OBJECT           // error constructor object not *types.Func
	ERR_ERROR_CONSTRUCTOR_TYPE             // error constructor func does not have correct signature
	ERR_ERROR_AGGREGATOR_OBJECT            // error aggregator object not *types.TypeName
	ERR_ERROR_AGGREGATOR_TYPE              // error aggregator type does not implement interface
)

Jump to

Keyboard shortcuts

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