Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
internal/ | H | 03-Feb-2021 | - | |||
.travis.yml | H A D | 03-Feb-2021 | 319 | |||
LICENSE | H A D | 03-Feb-2021 | 1.3 KiB | |||
Makefile | H A D | 03-Feb-2021 | 224 | |||
README.md | H A D | 03-Feb-2021 | 598 | |||
example_test.go | H A D | 03-Feb-2021 | 284 | |||
go.mod | H A D | 03-Feb-2021 | 52 | |||
tagparser.go | H A D | 03-Feb-2021 | 2.4 KiB | |||
tagparser_test.go | H A D | 03-Feb-2021 | 1.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