| ||
| username: vagrant | ||
| ssh_key: "/long/path/to/private_key" | ||
| port: '2222' | ||
| last_action: create | ||
| ` |
| type instanceConfig struct { Hostname string | |
| Username string | |
| SSHKey string `yaml:"ssh_key"` | |
| Port string | |
| } |
m := map[string]string
err := yaml.Unmarshal([]byte(data), m)
--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/Wa838LaSM0g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.