package
Version:
v0.0.0-...-232bcaf
Opens a new window with list of versions in this module.
Published: Dec 19, 2023
License: BSD-2-Clause, BSD-2-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Opinionated Golang tag parser
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']
}
Documentation
¶
package main
import (
"fmt"
"github.com/Alexander-r/msgpack/tagparser"
)
func main() {
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]
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.