From 31cf7a7e979f83645f4cec2b62b775e5ddb6c815 Mon Sep 17 00:00:00 2001 From: Laptop Date: Sat, 5 Oct 2024 20:44:48 +0300 Subject: [PATCH] fix docs --- README.md | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 30b6fca..71ff2af 100644 --- a/README.md +++ b/README.md @@ -50,15 +50,7 @@ npm i go install github.com/a-h/templ/cmd/templ@latest ``` -5. Download other required go modules: -```sh -go get -``` - -6. *Optional.* Edit config: -You can change some values in `lib/cfg/init.go` if you want. Keep in mind that you need to rebuild the binary each time you want to update the config. - -7. Generate code from templates & build binary: +5. Generate code from templates: *You might need to add go binaries to your PATH (add this line to your .bashrc / .zshrc / whatever)* ```sh @@ -66,10 +58,24 @@ export PATH=${PATH}:`go env GOPATH`/bin ``` ```sh -templ generate && go build main.go +templ generate ``` -8. Run the binary: +6. Download other required go modules: +```sh +go get +``` + +7. *Optional.* Edit config: +You can change some values in `lib/cfg/init.go` if you want. Keep in mind that you need to rebuild the binary each time you want to update the config. + +8. Build binary: + +```sh +go build main.go +``` + +9. Run the binary: ```sh ./main ```