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
Hi,
Its a really great tutorial and got me going on this very nicely. I have a quick question. How do I tell go lang to loop through the sections in the config.toml file. For example,
[development1]
server = 1.1.1.1
port = 111
type = development
[development2]
server = 1.2.2.2
port = 222
type = development
[blahblah]
server = 9.9.9.9
port = 1010
type = production
so, the user might declare multiple instance in the config, how do I continue reading these sections in a loop and based on "type" I can add them in the array , say, Development_Servers.
Thanks.
The text was updated successfully, but these errors were encountered:
Hi,
Its a really great tutorial and got me going on this very nicely. I have a quick question. How do I tell go lang to loop through the sections in the config.toml file. For example,
[development1]
server = 1.1.1.1
port = 111
type = development
[development2]
server = 1.2.2.2
port = 222
type = development
[blahblah]
server = 9.9.9.9
port = 1010
type = production
so, the user might declare multiple instance in the config, how do I continue reading these sections in a loop and based on "type" I can add them in the array , say, Development_Servers.
Thanks.
The text was updated successfully, but these errors were encountered: