File: example_test.go

package info (click to toggle)
golang-github-vmihailenco-tagparser 0.1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, experimental, forky, sid, trixie
  • size: 100 kB
  • sloc: makefile: 10
file content (15 lines) | stat: -rw-r--r-- 283 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package tagparser_test

import (
	"fmt"

	"github.com/vmihailenco/tagparser"
)

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