diff --git a/Makefile b/Makefile index 548a652..26feb26 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,10 @@ gen: go run . format-html: - deno fmt ./posts ./templates ./docs + bun upgrade + bun install --global prettier + prettier --write ./templates ./docs + deno fmt ./posts srht: # https://srht.site/quickstart diff --git a/docs/2022-07-19-migrate-to-buf.html b/docs/2022-07-19-migrate-to-buf.html index 8615957..1651bfa 100644 --- a/docs/2022-07-19-migrate-to-buf.html +++ b/docs/2022-07-19-migrate-to-buf.html @@ -43,7 +43,8 @@
build.go
: need to install protoc-gen-* binaries with pin
- version in go.mod
+ version in
+ go.mod
buf.yaml
buf.gen.yaml
import "third_party/googleapis/google/api/annotations.proto";
- with import "google/api/annotations.proto";
+ with
+ import "google/api/annotations.proto";
security_definitions
, security
, in
diff --git a/docs/2022-12-25-go-test-asap.html b/docs/2022-12-25-go-test-asap.html
index 9b6d006..009cace 100644
--- a/docs/2022-12-25-go-test-asap.html
+++ b/docs/2022-12-25-go-test-asap.html
@@ -257,25 +257,25 @@
of course.
tests := []struct{
- name string
- req Request
- verifyErr error
- minioErr error
- redisErr error
- dbErr error
- logErr error
- wantErr error
- // Murr error
- aErr error
- bErr error
- cErr error
- // ...
- }{
- {
- // Init test case
- }
- }
+ tests := []struct{
+ name string
+ req Request
+ verifyErr error
+ minioErr error
+ redisErr error
+ dbErr error
+ logErr error
+ wantErr error
+ // Murr error
+ aErr error
+ bErr error
+ cErr error
+ // ...
+}{
+ {
+ // Init test case
+ }
+}
The test file keep growing longer and longer until I feel sick about it. diff --git a/docs/2023-05-03-neovim.html b/docs/2023-05-03-neovim.html index 5aa1bf8..eca9f55 100644 --- a/docs/2023-05-03-neovim.html +++ b/docs/2023-05-03-neovim.html @@ -59,6 +59,7 @@ >Trick or treat +
Search current word: *
Search multiple words:
:/\vword1|word2|word3
@@ -313,6 +314,16 @@ vim.keymap.set(References / Thanks