From 8715c49ae6aef2f55dbbb4e3b60902336128f37f Mon Sep 17 00:00:00 2001 From: Charlie Tonneslan Date: Sat, 16 May 2026 19:12:26 -0400 Subject: [PATCH] docs: install qtc via go install instead of the dropped go get -u go get -u no longer installs binaries since Go 1.16. On a modern toolchain the README's instructions silently do nothing and qtc never lands on $PATH, which is what tripped up #94. Switch the package install to plain go get and the qtc install (and the go:generate snippet) to go install ...@latest, which is the documented replacement. Closes #94. Signed-off-by: Charlie Tonneslan --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 34bc45f..011cc5a 100644 --- a/README.md +++ b/README.md @@ -80,8 +80,8 @@ First of all, install the `quicktemplate` package and [quicktemplate compiler](https://github.com/valyala/quicktemplate/tree/master/qtc) (`qtc`): ``` -go get -u github.com/valyala/quicktemplate -go get -u github.com/valyala/quicktemplate/qtc +go get github.com/valyala/quicktemplate +go install github.com/valyala/quicktemplate/qtc@latest ``` If you using `go generate`, you just need put following into your `main.go` @@ -89,7 +89,7 @@ If you using `go generate`, you just need put following into your `main.go` Important: please specify your own folder (-dir) to generate template file ``` -//go:generate go get -u github.com/valyala/quicktemplate/qtc +//go:generate go install github.com/valyala/quicktemplate/qtc@latest //go:generate qtc -dir=app/views ```