Skip to content

Commit 1fe4a55

Browse files
authored
Merge pull request #14 from seth-shi/feature/v2
add: v2 namespace
2 parents a1648de + 946d227 commit 1fe4a55

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+97
-99
lines changed

.github/workflows/go.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
1818
- uses: actions/checkout@v4
1919
- name: Set APP_VERSION env
2020
run: echo APP_VERSION=$(echo ${GITHUB_REF} | rev | cut -d'/' -f 1 | rev ) >> ${GITHUB_ENV}
21-
- name: Environment Printer
22-
uses: managedkaos/print-env@v1.0
2321
- uses: wangyoucao577/go-release-action@v1
2422
with:
2523
github_token: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
| 系统 | CPU 架构 | 下载链接 |
1010
|---------|------------|-------------------------------------------------------------------------------------------------------------------------|
11-
| Mac | amd64 | [go-v2ex-darwin-amd64.tar.gz](https://github.com/seth-shi/go-v2ex/releases/latest/download/go-v2ex-darwin-amd64.tar.gz) |
12-
| Mac | arm64 | [go-v2ex-darwin-arm64.tar.gz](https://github.com/seth-shi/go-v2ex/releases/latest/download/go-v2ex-darwin-arm64.tar.gz) |
13-
| Linux | amd64 | [go-v2ex-linux-amd64.tar.gz](https://github.com/seth-shi/go-v2ex/releases/latest/download/go-v2ex-linux-amd64.tar.gz) |
14-
| Linux | arm64 | [go-v2ex-linux-arm64.tar.gz](https://github.com/seth-shi/go-v2ex/releases/latest/download/go-v2ex-linux-arm64.tar.gz) |
15-
| Windows | amd64 | [go-v2ex-windows-amd64.zip](https://github.com/seth-shi/go-v2ex/releases/latest/download/go-v2ex-windows-amd64.zip) |
11+
| Mac | amd64 | [go-v2ex-darwin-amd64.tar.gz](https://github.com/seth-shi/go-v2ex/v2/releases/latest/download/go-v2ex-darwin-amd64.tar.gz) |
12+
| Mac | arm64 | [go-v2ex-darwin-arm64.tar.gz](https://github.com/seth-shi/go-v2ex/v2/releases/latest/download/go-v2ex-darwin-arm64.tar.gz) |
13+
| Linux | amd64 | [go-v2ex-linux-amd64.tar.gz](https://github.com/seth-shi/go-v2ex/v2/releases/latest/download/go-v2ex-linux-amd64.tar.gz) |
14+
| Linux | arm64 | [go-v2ex-linux-arm64.tar.gz](https://github.com/seth-shi/go-v2ex/v2/releases/latest/download/go-v2ex-linux-arm64.tar.gz) |
15+
| Windows | amd64 | [go-v2ex-windows-amd64.zip](https://github.com/seth-shi/go-v2ex/v2/releases/latest/download/go-v2ex-windows-amd64.zip) |
1616
| Go | 直装(免配环境变量) | `go install github.com/seth-shi/go-v2ex@latest` |
1717
* 解压压缩包中的二进制文件放到环境变量目录
1818
* 运行 `go-v2ex` 命令即可启动程序。

api/api_self.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"context"
55

66
tea "github.com/charmbracelet/bubbletea"
7-
"github.com/seth-shi/go-v2ex/g"
8-
"github.com/seth-shi/go-v2ex/response"
7+
"github.com/seth-shi/go-v2ex/v2/g"
8+
"github.com/seth-shi/go-v2ex/v2/response"
99
)
1010

1111
func (cli *v2exClient) Me(ctx context.Context) tea.Cmd {

api/api_topics.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"context"
55

66
tea "github.com/charmbracelet/bubbletea"
7-
"github.com/seth-shi/go-v2ex/g"
8-
"github.com/seth-shi/go-v2ex/messages"
9-
"github.com/seth-shi/go-v2ex/response"
7+
"github.com/seth-shi/go-v2ex/v2/g"
8+
"github.com/seth-shi/go-v2ex/v2/messages"
9+
"github.com/seth-shi/go-v2ex/v2/response"
1010
)
1111

1212
func (cli *v2exClient) GetTopics(

api/api_v2_detail.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"fmt"
66

77
tea "github.com/charmbracelet/bubbletea"
8-
"github.com/seth-shi/go-v2ex/messages"
9-
"github.com/seth-shi/go-v2ex/response"
8+
"github.com/seth-shi/go-v2ex/v2/messages"
9+
"github.com/seth-shi/go-v2ex/v2/response"
1010
)
1111

1212
func (cli *v2exClient) GetDetail(ctx context.Context, id int64) tea.Cmd {

api/api_v2_replies.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"fmt"
66

77
tea "github.com/charmbracelet/bubbletea"
8-
"github.com/seth-shi/go-v2ex/messages"
9-
"github.com/seth-shi/go-v2ex/response"
8+
"github.com/seth-shi/go-v2ex/v2/messages"
9+
"github.com/seth-shi/go-v2ex/v2/response"
1010
)
1111

1212
func (cli *v2exClient) GetReply(ctx context.Context, id int64, page int) tea.Cmd {

api/api_v2_token.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
tea "github.com/charmbracelet/bubbletea"
88
"github.com/dromara/carbon/v2"
9-
"github.com/seth-shi/go-v2ex/response"
9+
"github.com/seth-shi/go-v2ex/v2/response"
1010
)
1111

1212
func (cli *v2exClient) GetToken(ctx context.Context) tea.Cmd {

api/internal/api_topics/api_v1.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"sync/atomic"
1111

1212
"github.com/samber/lo"
13-
"github.com/seth-shi/go-v2ex/g"
14-
"github.com/seth-shi/go-v2ex/response"
13+
"github.com/seth-shi/go-v2ex/v2/g"
14+
"github.com/seth-shi/go-v2ex/v2/response"
1515
"golang.org/x/sync/errgroup"
1616
"resty.dev/v3"
1717
)

api/internal/api_topics/api_v2.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111

1212
"github.com/puzpuzpuz/xsync/v4"
1313
"github.com/samber/lo"
14-
"github.com/seth-shi/go-v2ex/g"
15-
"github.com/seth-shi/go-v2ex/response"
14+
"github.com/seth-shi/go-v2ex/v2/g"
15+
"github.com/seth-shi/go-v2ex/v2/response"
1616
"golang.org/x/sync/errgroup"
1717
"resty.dev/v3"
1818
)

api/middleware.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"strings"
99
"sync/atomic"
1010

11-
"github.com/seth-shi/go-v2ex/g"
12-
"github.com/seth-shi/go-v2ex/response"
11+
"github.com/seth-shi/go-v2ex/v2/g"
12+
"github.com/seth-shi/go-v2ex/v2/response"
1313
"resty.dev/v3"
1414
)
1515

0 commit comments

Comments
 (0)