code-generator: Index | Files

package namer

import ""


Package Files


func NewTagOverrideNamer Uses

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.

type TagOverrideNamer Uses

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 Uses

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

Package namer imports 2 packages (graph) and is imported by 5 packages. Updated 2019-03-29. Refresh now. Tools for package owners.