mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-06-28 10:00:34 +00:00
f2e5bedea6
* migrate go version to 1.17 * update contributing |
||
---|---|---|
.. | ||
internal | ||
.travis.yml | ||
LICENSE | ||
Makefile | ||
README.md | ||
tagparser.go |
Opinionated Golang tag parser
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']
}