ยง 2023-06-04

  1. Install go
$ sudo pacman -S go
$ $ go version
go version go1.20.4 linux/arm64
  1. Build xcaddy
mkdir xcaddy-installation
cd xcaddy-installation
go mod init xcaddy
go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest

[alexlai@hc4MnBudgie bin]$ go version
go version go1.20.4 linux/arm64
[alexlai@hc4MnBudgie bin]$ ls -l /home/alexlai/go/bin/
total 4216
-rwxr-xr-x 1 alexlai alexlai 4309163 Jun  4 10:37 xcaddy
[alexlai@hc4MnBudgie bin]$ sudo cp -v /home/alexlai/go/bin/xcaddy /usr/bin/
[sudo] password for alexlai: 
'/home/alexlai/go/bin/xcaddy' -> '/usr/bin/xcaddy'
[alexlai@hc4MnBudgie bin]$ xcaddy version
v0.3.4 h1:eQAZPEQqyLY7S9+rfdvx/Zs/a3VNwo+f5d2BR6UNvig=