910ccdb092
Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.26.1 to 2.27.0. - [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases) - [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md) - [Commits](https://github.com/hashicorp/terraform-plugin-sdk/compare/v2.26.1...v2.27.0) --- updated-dependencies: - dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
25 lines
598 B
Markdown
25 lines
598 B
Markdown
# Opinionated Golang tag parser
|
|
|
|
[![Build Status](https://travis-ci.org/vmihailenco/tagparser.png?branch=master)](https://travis-ci.org/vmihailenco/tagparser)
|
|
[![GoDoc](https://godoc.org/github.com/vmihailenco/tagparser?status.svg)](https://godoc.org/github.com/vmihailenco/tagparser)
|
|
|
|
## Installation
|
|
|
|
Install:
|
|
|
|
```shell
|
|
go get github.com/vmihailenco/tagparser/v2
|
|
```
|
|
|
|
## Quickstart
|
|
|
|
```go
|
|
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']
|
|
}
|
|
```
|