Skip to content

Instantly share code, notes, and snippets.

@ncomet
Created May 2, 2022 15:04
Show Gist options
  • Save ncomet/944fcabc07f28b0b6601a06085256238 to your computer and use it in GitHub Desktop.
Save ncomet/944fcabc07f28b0b6601a06085256238 to your computer and use it in GitHub Desktop.
setup function
func setup(ctx context.Context, image image) (*container, error) {
cont, uri, err := prepareContainer(ctx, image)
if err != nil {
return nil, err
}
return &container{Container: cont, URI: uri}, nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment