From 073c52f5fe83d1701468d80c133b22957863e484 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Sat, 23 Mar 2024 23:45:02 +0700 Subject: [PATCH] feat: more tools --- docs/2022-07-10-bootstrap-go.html | 8 +++---- docs/2022-12-25-go-test-asap.html | 30 +++++++++++++-------------- docs/2023-06-10-incident-context.html | 2 +- docs/2023-06-25-useful-tools.html | 10 +++++++++ posts/2023-06-25-useful-tools.md | 2 ++ 5 files changed, 32 insertions(+), 20 deletions(-) diff --git a/docs/2022-07-10-bootstrap-go.html b/docs/2022-07-10-bootstrap-go.html index ee57b2a..2e628b7 100644 --- a/docs/2022-07-10-bootstrap-go.html +++ b/docs/2022-07-10-bootstrap-go.html @@ -342,7 +342,7 @@ internal

Example:

var bufPool = sync.Pool{
-	New: func() any {
+	New: func() any {
 		return new(bytes.Buffer)
 	},
 }
@@ -388,13 +388,13 @@ internal
     

// Ptr takes in non-pointer and returns a pointer
-func Ptr[T any](v T) *T {
+func Ptr[T any](v T) *T {
 	return &v
 }

Return zero value:

-
func Zero[T any]() T {
+      
func Zero[T any]() T {
   var zero T
   return zero
 }
@@ -879,7 +879,7 @@ internal
type Drink int
 
 const (
-	Beer Drink = iota
+	Beer Drink = iota
 	Water
 	OrangeJuice
 )
diff --git a/docs/2022-12-25-go-test-asap.html b/docs/2022-12-25-go-test-asap.html index e590f0c..66b4b68 100644 --- a/docs/2022-12-25-go-test-asap.html +++ b/docs/2022-12-25-go-test-asap.html @@ -238,11 +238,11 @@ wantErr error }{ { - req: Request { - a: "a", - b: { - c: "c", - d: { + req: Request { + a: "a", + b: { + c: "c", + d: { "e": e } } @@ -250,11 +250,11 @@ // Other fieles }, { - req: Request { - a: "a", - b: { - c: "c", - d: { + req: Request { + a: "a", + b: { + c: "c", + d: { "e": e } } @@ -262,11 +262,11 @@ // Other fieles }, { - req: Request { - a: "a", - b: { - c: "c", - d: { + req: Request { + a: "a", + b: { + c: "c", + d: { "e": e } } diff --git a/docs/2023-06-10-incident-context.html b/docs/2023-06-10-incident-context.html index 376c558..315f5f4 100644 --- a/docs/2023-06-10-incident-context.html +++ b/docs/2023-06-10-incident-context.html @@ -188,7 +188,7 @@ doB context deadline exceeded
return disconnectedContext{ - parent: parent, + parent: parent, } } diff --git a/docs/2023-06-25-useful-tools.html b/docs/2023-06-25-useful-tools.html index 6a7396b..81b1bd6 100644 --- a/docs/2023-06-25-useful-tools.html +++ b/docs/2023-06-25-useful-tools.html @@ -573,6 +573,11 @@ >https://github.com/pqrs-org/Karabiner-Elements +
  • + https://github.com/crystalidea/macs-fan-control +
  • Memory

      @@ -658,6 +663,11 @@ >https://github.com/denoland/deno +
    • + https://github.com/pyenv/pyenv +
    • https://github.com/pypa/pipx
    • diff --git a/posts/2023-06-25-useful-tools.md b/posts/2023-06-25-useful-tools.md index d957959..88bc93c 100644 --- a/posts/2023-06-25-useful-tools.md +++ b/posts/2023-06-25-useful-tools.md @@ -111,6 +111,7 @@ Memory - https://github.com/zed-industries/zed - https://github.com/lwouis/alt-tab-macos - https://github.com/pqrs-org/Karabiner-Elements +- https://github.com/crystalidea/macs-fan-control Memory @@ -131,6 +132,7 @@ Memory - https://github.com/Schniz/fnm - https://github.com/oven-sh/bun - https://github.com/denoland/deno +- https://github.com/pyenv/pyenv - https://github.com/pypa/pipx - https://github.com/astral-sh/uv - https://github.com/corbindavenport/nexus-tools