Skip to content

Commit 9894791

Browse files
authored
v2: fix errors in README (#118)
Fix a number of minor issues in example codeblocks for the v2 README. Updates #cleanup Signed-off-by: Mario Minardi <[email protected]>
1 parent 8016f5e commit 9894791

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

v2/README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,13 @@ package main
1717

1818
import (
1919
"context"
20-
"log"
2120
"os"
2221

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

2625
func main() {
27-
&tsclient.Client{
26+
client := &tsclient.Client{
2827
Tailnet: os.Getenv("TAILSCALE_TAILNET"),
2928
APIKey: os.Getenv("TAILSCALE_API_KEY"),
3029
}
@@ -40,18 +39,12 @@ package main
4039

4140
import (
4241
"context"
43-
"log"
4442
"os"
4543

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

4947
func main() {
50-
oauthClientID :=
51-
oauthClientID :=
52-
oauthScopes := []string{"all:write"}
53-
tailnet := os.Getenv("TAILSCALE_TAILNET")
54-
5548
client := &tsclient.Client{
5649
Tailnet: os.Getenv("TAILSCALE_TAILNET"),
5750
HTTP: tsclient.OAuthConfig{

0 commit comments

Comments
 (0)