Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 598 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 598 Bytes

Opinionated Golang tag parser

Build Status GoDoc

Installation

Install:

go get github.com/vmihailenco/tagparser/v2

Quickstart

func ExampleParse() {
	tag := tagparser.Parse("some_name,key:value,key2:'complex value'")
	fmt.Println(tag.Name)
	fmt.Println(tag.Options)
	// Output: some_name
	// map[key:value key2:'complex value']
}