hmalphettes / tagparser

Opinionated Golang tag parser

Home Page:https://get.uptrace.dev/compare/datadog-competitors.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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']
}

About

Opinionated Golang tag parser

https://get.uptrace.dev/compare/datadog-competitors.html

License:BSD 2-Clause "Simplified" License


Languages

Language:Go 96.6%Language:Makefile 3.4%