Re: [go-nuts] unpacking map[string]interface{} answer

2021-05-31 Thread Amit Saha
> On 31 May 2021, at 6:08 pm, natxo@gmail.com > wrote: > > ok, I think I understand how this library works, and posting this for future > reference in case someone needs it. > > The library uses this other library: > https://github.com/mitchellh/mapstructure >

[go-nuts] unpacking map[string]interface{} answer

2021-05-30 Thread natxo....@gmail.com
hi, I am struggling to understand how to use this map[string]interface{}. snippet: package main import "fmt" import "github.com/mattwilmott/go-foreman" func main() { client := foreman.Client("foreman.l.example.org", "admin", "whatever", false, "") fmt.Println(client) resp, err :=