import ( "fmt" "github.com/juju/names/tagstring" ) func main() { tag := tagstring.Parse("region-us-1") fmt.Println(tag.Value()) fmt.Println(tag.Kind()) }
import ( "github.com/juju/names/tagstring" ) func main() { tag := tagstring.TagString{Kind_: "flavor", Id_: "medium"} fmt.Println(tag.String()) }In this example, we create a `TagString` object manually using the `TagString{}` constructor. We set the `Kind` to "flavor" and the `Id` to "medium". We then use the `String()` method to retrieve the string representation of the tag ("flavor-medium"). Overall, the go github.com.juju.names Tag String package provides a useful set of tools for working with tags in Juju and other applications.