mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-06-30 11:00:48 +00:00
98263a7de6
* start fixing up tests * fix up tests + automate with drone * fiddle with linting * messing about with drone.yml * some more fiddling * hmmm * add cache * add vendor directory * verbose * ci updates * update some little things * update sig
598 B
598 B
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']
}