Skip to content
Ricky
English

Search

Searching… No matching pages. Matching pages are listed below. Search is unavailable. Please try again.

Go

All posts

Be Alert: Supply Chain Attacks Are Closer Than You Think github.com/siruspen/logrus false github.com/sirupsen/logrus true

Go Articles

Learn gin Parameter Validation with the validator Library - This One Article Is Enough String Constraints excludesall: does not contain any of the UNICODE characters in the parameter, e.g. excludesall=ab …

7 minutes

Black Hat Go

https://nostarch.com/blackhatgo https://github.com/blackhat-go/bhg https://github.com/TralahM/blackhat-go Black Hat Go https://github.com/YYRise/bhg

1 minute

More Powerful Go Execution Tracing runtime/trace golang.org/x/exp/trace Flight Recording // Set up the flight recorder fr := trace.NewFlightRecorder() fr.Start() // Set up and run the HTTP server var once …

2 minutes

Run llama3

ollama/ollama Ollama + Open WebUI,快捷部署 AI 大型語言模型到你的電腦,離線執行 Docker-compose version: "3.8" services: ollama: image: ollama/ollama:latest container_name: ollama restart: unless-stopped volumes: - …

Go Style Decisions - Pass values Do not pass pointers as function arguments just to save a few bytes. If a function reads its argument x only as *x throughout, then the argument shouldn’t be a pointer. Common …

1 minute

Go Generics Beginner Notes Custom Constraints // Addable allows only int or float64 types type Addable interface { int | float64 } func Add[T Addable](a, b T) T { return a + b } What ~ Means ~ represents all …

1 minute