Skip to content

Commit

Permalink
v2: fix errors in README
Browse files Browse the repository at this point in the history
Fix a number of minor issues in example codeblocks for the v2 README.

Updates #cleanup

Signed-off-by: Mario Minardi <mario@tailscale.com>
  • Loading branch information
mpminardi committed Sep 19, 2024
1 parent e39c3ee commit 7d99394
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ package main

import (
"context"
"log"
"os"

tsclient "github.com/tailscale/tailscale-client-go/v2"
)

func main() {
&tsclient.Client{
client := &tsclient.Client{
Tailnet: os.Getenv("TAILSCALE_TAILNET"),
APIKey: os.Getenv("TAILSCALE_API_KEY"),
}
Expand All @@ -40,18 +39,12 @@ package main

import (
"context"
"log"
"os"

tsclient "github.com/tailscale/tailscale-client-go/v2"
)

func main() {
oauthClientID :=
oauthClientID :=
oauthScopes := []string{"all:write"}
tailnet := os.Getenv("TAILSCALE_TAILNET")

client := &tsclient.Client{
Tailnet: os.Getenv("TAILSCALE_TAILNET"),
HTTP: tsclient.OAuthConfig{
Expand Down

0 comments on commit 7d99394

Please sign in to comment.