Skip to content

Instantly share code, notes, and snippets.

@wjimenez5271
Created December 15, 2015 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wjimenez5271/bdd9704e0a4187fac4e6 to your computer and use it in GitHub Desktop.
Save wjimenez5271/bdd9704e0a4187fac4e6 to your computer and use it in GitHub Desktop.
21 resp, err := client.CreateImage(create_image_opts)
22 es, ok := err.(ec2.Error)
23 if ok {
24 log.Print(fmt.Sprintf(es.Code))
25 } else {
26 log.Print(fmt.Sprintf("No value for response Code"))
27 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment