You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type Server struct {
Url string
Port int
}
type Host struct {
Servers []Server
}
var blob = `
[Host]
[[Servers]]
Url = "http://google.com"
[[Servers]]
Url = "http://github.com"
`
How to Decode with all Servers Port = 80?
The text was updated successfully, but these errors were encountered:
Unfortunately, because of the array, there's no good way to do this (because of #169 even meta.IsDefined doesn't help). So you're left with something like https://play.golang.org/p/DJ76rVVE5a for now. Sorry!
eg:
How to Decode with all Servers Port = 80?
The text was updated successfully, but these errors were encountered: