namespace

package
v0.30.4 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 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 Builder

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

func NewBuilderNaming

func NewBuilderNaming(naming func(string, string) string) *Builder

func (*Builder) Get

func (nb *Builder) Get(fileName string) Namespace

type Namespace

type Namespace interface {
	String() string

	SetPkgName(pkg string) error
	PkgName() string

	WithImport(pkgNamespace Namespace) (Namespace, error)
	WithScope(name string) Namespace
	GetType(name string) ast.Type
	GetService(name string) *ast.Service
	SetNode(name string, def ast.Node, defPos scanner.Position) error

	Finalized() bool
	Finalize()
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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