module

package
v0.6.1-0...-4baa5b7 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MIT Imports: 10 Imported by: 0

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