structtag

package module
v0.0.0-...-217e25f Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2015 License: BSD-3-Clause Imports: 2 Imported by: 39

README

structtag Build Status

This is taken from the Go standard library but modified to return a boolean indicating if a struct tag was found or not to allow differentiating an empty struct tag from a non existing struct tag.

License: http://golang.org/LICENSE

Documentation: https://godoc.org/github.com/facebookgo/structtag

Documentation

Overview

Package structtag provides parsing of the defacto struct tag style.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(name, tag string) (found bool, value string, err error)

Extract the quoted value for the given name returning it if it is found. The found boolean helps differentiate between the "empty and found" vs "empty and not found" nature of default empty strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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