tags

package
v0.0.0-...-7203340 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fields

func Fields(s string) []string

Fields splits a string on a space characters * Following spaces are treated as one space. * Quoted spaces are ignored. * Escaped quotes are not consider as quotes.

func Parse

func Parse(tag string) map[string]map[string]string

Parse parsers a struct tags A tag is a 2 levels deep mapping. * First level is separated by space, each item is of the pattern 'key:"value"' (the value is quoted) * Second level (value from first level) is separated by ';', each item is of the pattern 'key:value'

Types

This section is empty.

Jump to

Keyboard shortcuts

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