namer

package
v0.30.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 28

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTagOverrideNamer

func NewTagOverrideNamer(tagName string, fallback namer.Namer) namer.Namer

NewTagOverrideNamer creates a namer.Namer which uses the contents of the given tag as the name, or falls back to another Namer if the tag is not present.

Types

type TagOverrideNamer

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

TagOverrideNamer is a namer which pulls names from a given tag, if specified, and otherwise falls back to a different namer.

func (*TagOverrideNamer) Name

func (n *TagOverrideNamer) Name(t *types.Type) string

Name returns the tag value if it exists. It no tag was found the fallback namer will be used

Jump to

Keyboard shortcuts

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