• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

internal/H03-Feb-2021-

.travis.ymlH A D03-Feb-2021319

LICENSEH A D03-Feb-20211.3 KiB

MakefileH A D03-Feb-2021224

README.mdH A D03-Feb-2021598

example_test.goH A D03-Feb-2021284

go.modH A D03-Feb-202152

tagparser.goH A D03-Feb-20212.4 KiB

tagparser_test.goH A D03-Feb-20211.8 KiB

README.md

1# Opinionated Golang tag parser
2
3[![Build Status](https://travis-ci.org/vmihailenco/tagparser.png?branch=master)](https://travis-ci.org/vmihailenco/tagparser)
4[![GoDoc](https://godoc.org/github.com/vmihailenco/tagparser?status.svg)](https://godoc.org/github.com/vmihailenco/tagparser)
5
6## Installation
7
8Install:
9
10```shell
11go get github.com/vmihailenco/tagparser/v2
12```
13
14## Quickstart
15
16```go
17func ExampleParse() {
18	tag := tagparser.Parse("some_name,key:value,key2:'complex value'")
19	fmt.Println(tag.Name)
20	fmt.Println(tag.Options)
21	// Output: some_name
22	// map[key:value key2:'complex value']
23}
24```
25