Skip to content

Commit 9e09cf1

Browse files
authored
fix: switch from pkg/browser to cli/browser (#241)
1 parent 4ce4de3 commit 9e09cf1

File tree

4 files changed

+7
-54
lines changed

4 files changed

+7
-54
lines changed

cmd/contest.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"github.com/briandowns/spinner"
1212
"github.com/charmbracelet/lipgloss"
1313
"github.com/charmbracelet/log"
14+
"github.com/cli/browser"
1415
"github.com/hako/durafmt"
15-
"github.com/pkg/browser"
1616
"github.com/spf13/cobra"
1717
"github.com/spf13/viper"
1818

cmd/open.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cmd
22

33
import (
4-
"github.com/pkg/browser"
4+
"github.com/cli/browser"
55
"github.com/spf13/cobra"
66

77
"github.com/j178/leetgo/leetcode"

go.mod

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ require (
1313
github.com/charmbracelet/glamour v0.6.0
1414
github.com/charmbracelet/lipgloss v0.9.1
1515
github.com/charmbracelet/log v0.3.0
16+
github.com/cli/browser v1.3.0
1617
github.com/dghubble/sling v1.4.1
1718
github.com/dop251/goja v0.0.0-20231027120936-b396bb4c349d
1819
github.com/fatih/color v1.16.0
@@ -30,7 +31,6 @@ require (
3031
github.com/mitchellh/go-homedir v1.1.0
3132
github.com/muesli/reflow v0.3.0
3233
github.com/pelletier/go-toml/v2 v2.1.0
33-
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
3434
github.com/sashabaranov/go-openai v1.17.5
3535
github.com/spf13/cobra v1.8.0
3636
github.com/spf13/viper v1.17.0
@@ -82,15 +82,13 @@ require (
8282
github.com/sourcegraph/conc v0.3.0 // indirect
8383
github.com/spf13/afero v1.10.0 // indirect
8484
github.com/spf13/cast v1.5.1 // indirect
85-
github.com/spf13/jwalterweatherman v1.1.0 // indirect
8685
github.com/spf13/pflag v1.0.5 // indirect
8786
github.com/subosito/gotenv v1.6.0 // indirect
8887
github.com/tidwall/match v1.1.1 // indirect
8988
github.com/tidwall/pretty v1.2.1 // indirect
9089
github.com/yuin/goldmark v1.6.0 // indirect
9190
github.com/yuin/goldmark-emoji v1.0.2 // indirect
9291
github.com/zalando/go-keyring v0.2.3 // indirect
93-
go.uber.org/atomic v1.11.0 // indirect
9492
go.uber.org/multierr v1.11.0 // indirect
9593
golang.org/x/crypto v0.15.0 // indirect
9694
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect

0 commit comments

Comments
 (0)