go to website
https://go.dev/doc/install
dowload file
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.24.0.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
if go command not founc
nano ~/.bashrc
add
export PATH=$PATH:/usr/local/go/bin
save (ctr+x)
source ~/.bashrc
install golang swagger
go install github.com/swaggo/swag/cmd/swag@latest
run command in terminal if command swag not run
export PATH=$(go env GOPATH)/bin:$PATH
source
https://github.com/swaggo/swag/issues/197
Komentar
Posting Komentar