namer

package
v0.0.0-...-30a8ca0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImportTracker

type ImportTracker interface {
	AddType(o gengotypes.TypeName)

	LocalNameOf(packagePath string) string
	PathOf(localName string) (string, bool)

	Imports() map[string]string
}

func NewDefaultImportTracker

func NewDefaultImportTracker() ImportTracker

type NameSystems

type NameSystems map[string]Namer

type Namer

type Namer interface {
	Name(gengotypes.TypeName) string
}

func NewRawNamer

func NewRawNamer(pkgPath string, tracker ImportTracker) Namer

type Names

type Names map[gengotypes.TypeName]string

Jump to

Keyboard shortcuts

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