jsontags

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tag

type Tag struct {
	Name    string
	Options string
}

A Tag represents a struct field's json tag.

func Parse

func Parse(tag string) Tag

Parse splits a struct field's json tag into its name and comma-separated options.

func (Tag) Contains

func (t Tag) Contains(option string) bool

Contains reports whether the tag's comma-separated list of options contains a particular option.

Jump to

Keyboard shortcuts

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