module

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2019 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() pgs.Module

func Retag

func Retag(n ast.Node, tags StructTags) error

Retag updates the existing tags with the map passed and modifies existing tags if any of the keys are matched. First key to the tags argument is the name of the struct, the second key corresponds to field names.

Types

type StructTags

type StructTags map[string]map[string]*structtag.Tags

func (StructTags) AddTagsToXXXFields

func (s StructTags) AddTagsToXXXFields(tags *structtag.Tags)

Jump to

Keyboard shortcuts

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