Update documentation

This commit is contained in:
世界 2023-08-11 21:11:11 +08:00
parent 03c0b20818
commit 496c016a24
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -1,6 +1,17 @@
# Install from source # Install from source
sing-box requires Golang **1.18.5** or a higher version. ## Requirements
Before sing-box 1.4.0:
* Go 1.18.5 - 1.20.x
Since sing-box 1.4.0:
* Go 1.18.5 - ~
* Go 1.20.0 - ~ if `with_quic` tag enabled
## Installation
```bash ```bash
go install -v github.com/sagernet/sing-box/cmd/sing-box@latest go install -v github.com/sagernet/sing-box/cmd/sing-box@latest
@ -9,7 +20,7 @@ go install -v github.com/sagernet/sing-box/cmd/sing-box@latest
Install with options: Install with options:
```bash ```bash
go install -v -tags with_clash_api github.com/sagernet/sing-box/cmd/sing-box@latest go install -v -tags with_quic,with_wireguard github.com/sagernet/sing-box/cmd/sing-box@latest
``` ```
| Build Tag | Description | | Build Tag | Description |