Skip to content
Projects

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.

How these counts are measured

简单易用、足够轻量、性能好的 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

Original

English | 简体中文

GitHub tag (latest SemVer) flat go.dev reference UnitTest Go Report Card codecov

luckything

📚 Documentation

Online 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()
}

znet

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...
}

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

  • znet - Web framework
  • zpool - Resource pool management
  • zpprof - Performance profiling

Utility Modules

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

MIT

Explore related projects