Skip to content

Commit cb1a0ad

Browse files
committed
chore: update module path and add go install instructions
1 parent a297fdd commit cb1a0ad

4 files changed

Lines changed: 34 additions & 2 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@ Web fetch results are often raw HTML/JS/CSS, which is noisy for LLMs. This tool
2020
- `static`: never uses browser fallback
2121
- `browser`: always uses headless browser
2222

23+
## Install (with Go)
24+
25+
If Go is already installed locally:
26+
27+
```bash
28+
go install github.com/firede/agent-fetch/cmd/agent-fetch@latest
29+
```
30+
31+
Install a specific version:
32+
33+
```bash
34+
go install github.com/firede/agent-fetch/cmd/agent-fetch@v0.1.0
35+
```
36+
37+
Make sure `$(go env GOPATH)/bin` (usually `~/go/bin`) is in your `PATH`.
38+
2339
## Install (from Releases)
2440

2541
1. Download the archive for your platform from the [GitHub Releases](https://github.com/firede/agent-fetch/releases) page.

README.zh.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@
2020
- `static`:只走静态路径,不启用浏览器回退
2121
- `browser`:始终使用无头浏览器
2222

23+
## 安装(使用 Go)
24+
25+
如果本地已经安装 Go,可直接执行:
26+
27+
```bash
28+
go install github.com/firede/agent-fetch/cmd/agent-fetch@latest
29+
```
30+
31+
安装指定版本:
32+
33+
```bash
34+
go install github.com/firede/agent-fetch/cmd/agent-fetch@v0.1.0
35+
```
36+
37+
请确保 `$(go env GOPATH)/bin`(通常是 `~/go/bin`)已加入 `PATH`
38+
2339
## 安装(从 Releases 下载)
2440

2541
1.[GitHub Releases](https://github.com/firede/agent-fetch/releases) 页面下载对应平台的压缩包。

cmd/agent-fetch/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"strings"
1010
"time"
1111

12-
"github.com/fred/agent-fetch/internal/fetcher"
12+
"github.com/firede/agent-fetch/internal/fetcher"
1313
)
1414

1515
type headerFlags struct {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/fred/agent-fetch
1+
module github.com/firede/agent-fetch
22

33
go 1.25.0
44

0 commit comments

Comments
 (0)