imports

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Imports

type Imports struct {
	// contains filtered or unexported fields
}

Imports a gogh.Importer implementation to deal with imports of frequent imports needed in mocks

func New

func New(i *gogh.Imports) *Imports

New creates new Imports

func (*Imports) Add

func (i *Imports) Add(pkgpath string) *gogh.ImportAliasControl

Add to satisfy gogh.Importer

func (*Imports) Deepequal

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

Deepequal imports github.com/sirkon/deepequal

func (*Imports) Errors

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

Errors imports stdlib errors

func (*Imports) Gomock

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

Gomock imports github.com/golang/mock/gomock

func (*Imports) Imports

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

Imports to satisfy gogh.Importer

func (*Imports) Module

func (i *Imports) Module(relpath string) *gogh.ImportAliasControl

Module to satisfy gogh.Importer

func (*Imports) Reflect

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

Reflect imports stdlib reflect

Jump to

Keyboard shortcuts

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