Skip to content

Commit

Permalink
Merge pull request #16 from ngrok/staging
Browse files Browse the repository at this point in the history
v4.0.1 - cut new release for ngrok-api-go
  • Loading branch information
joshuarubin committed Apr 6, 2022
2 parents 253e0bb + cbd8e3a commit 7e7b4c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
//
// func example(ctx context.Context) error {
// domains := reserved_domains.NewClient(ngrok.NewClientConfig("<API KEY>"))
// d, err := domains.Create(context.Background(), &ngrok.ReservedDomainsCreate{
// d, err := domains.Create(ctx, &ngrok.ReservedDomainCreate{
// Name: fmt.Sprintf("hello-gopher-%x", rand.Int()),
// }
// })
// if err != nil {
// return err
// }
Expand Down Expand Up @@ -85,7 +85,7 @@
// ngrok.Bool() for the caller to wrap literals as pointer values. For example:
//
// creds := credentials.NewClient(ngrok.NewClientConfig("<API KEY>"))
// c, err := creds.Update(ctx, &ngrok.IPPolicyUpdate{
// c, err := creds.Update(ctx, &ngrok.CredentialUpdate{
// ID: "cr_1kYzunEyn6XHHlqyMBLrj5nxkoz",
// Description: ngrok.String("this optional description is a pointer to a string"),
// })
Expand Down Expand Up @@ -141,7 +141,7 @@
// would structure your code like the following example:
//
// domains := reserved_domains.NewClient(ngrok.NewClientConfig("<API KEY>"))
// d, err := domains.Create(ctx, &ngrok.ReservedDomainsCreate{
// d, err := domains.Create(ctx, &ngrok.ReservedDomainCreate{
// Region: "invalid",
// Name: "gopher",
// })
Expand Down

0 comments on commit 7e7b4c3

Please sign in to comment.