sohaha/zlsgo
sohaha/zlsgo has 1,001 GitHub stars and 54 forks. Star changes are not measured yet. Last checked 2026-11-09 12:38 UTC. Last push 2026-10-28.
简单易用、足够轻量、性能好的 Golang 库 - Easy to use, light enough, good performance Golang library
Measured star growth
- in 24h
- Update delayed
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.EN.md
OriginalEnglish | 简体中文

📚 Documentation
For detailed documentation of each module, please refer to the README.md file in the corresponding module directory, for example:
Recommended to use with the zzz watch command of zzz
✨ Features
- Lightweight & Efficient: Avoid excessive external dependencies
- Modular Design: Import on demand, reduce unnecessary code volume
- Type Safe: Fully utilize Go's type system, provide type-safe APIs
- High Performance: Optimize underlying implementation, pursue ultimate performance
- Simple & Easy to Use: Provide concise and intuitive API design
🚀 QuickStart
Install
$ go get github.com/sohaha/zlsgo
HTTP Service
// main.go
package main
import (
"github.com/sohaha/zlsgo/znet"
)
func main(){
// Get an instance
r := znet.New()
// Register route
r.GET("/hi", func(c *znet.Context) {
c.String(200, "Hello world")
})
// Implicit routing (struct binding) please refer to the document
// Start
znet.Run()
}

Logger
package main
import (
"github.com/sohaha/zlsgo/zlog"
)
func main(){
logs := []string{"This is a test", "This is an error"}
zlog.Debug(logs[0])
zlog.Error(logs[1])
zlog.Dump(logs)
// zlog...
}

HTTP Client
// main.go
package main
import (
"github.com/sohaha/zlsgo/zhttp"
"github.com/sohaha/zlsgo/zlog"
)
func main(){
data, err := zhttp.Get("https://github.com")
if err != nil {
zlog.Error(err)
return
}
res := data.String()
zlog.Debug(res)
}
More features
Please read the documentation https://docs.73zls.com/zls-go/#
📦 Module List
Core Modules
- zarray - Array operations
- zcache - Cache library
- zcli - Command-line interface
- zdi - Dependency injection
- zerror - Error handling
File and Data Modules
Network and Web Modules
Utility Modules
- zlog - Logger
- zreflect - Reflection utilities
- zshell - Shell command execution
- zstring - String processing
- zsync - Synchronization primitives
- ztime - Time handling
- zutil - Common utilities
- zvalid - Data validation
- zlocale - Internationalization
Todo
- HTTP Server
- HTTP Client
- JSON RPC
- Logger
- JSON processing
- String processing
- Validator
- Hot Restart
- Daemon
- Exception reporting
- Terminal application
- Goroutine pool
- HTML Parse
- Dependency injection
- Server Sent Event
- High-performance HashMap
- Internationalization
- Database operations
- ...(Read more documentation)
LICENSE
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,569 starspublic-apis/public-apis
A collective list of free APIs
497,888 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
449,470 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,300 stars