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
I'm hoping to use Environments.List to simply list all of the environments.
It appears that the EnvironmentsResult object is of the type map[string]string
However when I attempt to access it via:
I'm hoping to use Environments.List to simply list all of the environments.
It appears that the EnvironmentsResult object is of the type map[string]string
However when I attempt to access it via:
environments, err := client.Environments.List()
fmt.Println(environments["foo"])
I get this error
"invalid operation: environments["foo"] (type *chef.EnvironmentResult does not support indexing)"
I am new to go so maybe I am not using correctly.
Is EnvironmentsResult not a map?
The text was updated successfully, but these errors were encountered: