All Projects → sohaha → Zlsgo

sohaha / Zlsgo

Licence: mit
简单易用、足够轻量、性能好的 Golang 库 - Easy to use, light enough, good performance Golang library

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Labels

Projects that are alternatives of or similar to Zlsgo

Flow Typed
A central repository for Flow library definitions
Stars: ✭ 3,772 (+847.74%)
Mutual labels:  cli
Triage
Interactive command-line GitHub issue & notification triaging tool.
Stars: ✭ 394 (-1.01%)
Mutual labels:  cli
Isogram
Generate Google Analytics tracking code with any isogrammic parameters you like
Stars: ✭ 396 (-0.5%)
Mutual labels:  cli
Swaggen
OpenAPI/Swagger 3.0 Parser and Swift code generator
Stars: ✭ 385 (-3.27%)
Mutual labels:  cli
Pipupgrade
🗽 Like yarn outdated/upgrade, but for pip. Upgrade all your pip packages and automate your Python Dependency Management.
Stars: ✭ 391 (-1.76%)
Mutual labels:  cli
Mri
Quickly scan for CLI flags and arguments
Stars: ✭ 394 (-1.01%)
Mutual labels:  cli
Collision
💥 Collision is a beautiful error reporting tool for command-line applications
Stars: ✭ 3,993 (+903.27%)
Mutual labels:  cli
Args
Toolkit for building command line interfaces
Stars: ✭ 399 (+0.25%)
Mutual labels:  cli
Ticker.sh
Real-time stock tickers from the command-line.
Stars: ✭ 392 (-1.51%)
Mutual labels:  cli
Bpfd
Framework for running BPF programs with rules on Linux as a daemon. Container aware.
Stars: ✭ 396 (-0.5%)
Mutual labels:  cli
Cinf
Command line tool to view namespaces and cgroups, useful for low-level container prodding
Stars: ✭ 389 (-2.26%)
Mutual labels:  cli
Moro
Simple CLI tool for tracking work hours. Note: Heavy changes are happening in this repository. Docs might not be up to date, and things might be broken. Only the released NPM version is stable.
Stars: ✭ 390 (-2.01%)
Mutual labels:  cli
Fire Hpp
Fire for C++: Create fully functional CLIs using function signatures
Stars: ✭ 395 (-0.75%)
Mutual labels:  cli
Resume Cli
CLI tool to easily setup a new resume 📑
Stars: ✭ 3,967 (+896.73%)
Mutual labels:  cli
Cocona
Micro-framework for .NET Core console application. Cocona makes it easy and fast to build console applications on .NET Core.
Stars: ✭ 398 (+0%)
Mutual labels:  cli
Isort
A Python utility / library to sort imports.
Stars: ✭ 4,377 (+999.75%)
Mutual labels:  cli
Protolock
Protocol Buffer companion tool. Track your .proto files and prevent changes to messages and services which impact API compatibility.
Stars: ✭ 394 (-1.01%)
Mutual labels:  cli
Cli
CLI tool for dead-simple serverless Docker deployments on managed Kubernetes services. A self-hosted PaaS. ⚡️
Stars: ✭ 400 (+0.5%)
Mutual labels:  cli
Go Prompt
Building powerful interactive prompts in Go, inspired by python-prompt-toolkit.
Stars: ✭ 4,255 (+969.1%)
Mutual labels:  cli
Cpx
A cli tool to watch and copy file globs.
Stars: ✭ 394 (-1.01%)
Mutual labels:  cli

English | 简体中文

go.dev reference flat Build Status Go Report Card codecov

luckything

文档

查看文档

建议搭配 zzzzzz watch 指令使用

特性

简单易用、足够轻量,避免过多的外部依赖,最低兼容 Window 7 等老系统

快速上手

安装

$ go get github.com/sohaha/zlsgo

HTTP 服务

// main.go
package main

import (
    "github.com/sohaha/zlsgo/znet"
)

func main(){
    // 获取一个实例
    r := znet.New()

    // 注册路由
    r.GET("/hi", func(c *znet.Context) {
        c.String(200, "Hello world")
     })
    // 隐性路由(结构体绑定)请参考文档
    // 启动
    znet.Run()
}

znet

日志工具

package main

import (
    "github.com/sohaha/zlsgo/zlog"
)

func main(){
    logs := []string{"这是一个测试","这是一个错误"}
    zlog.Debug(logs[0])
    zlog.Error(logs[1])
    zlog.Dump(logs)
    // zlog...
}

zlog

HTTP 客户端

// 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)

}

更多功能

请阅读文档 https://docs.73zls.com/zls-go/#

Todo

  • [x] HTTP 服务端
  • [x] Http 客户端
  • [x] 日志功能
  • [x] Json 处理
  • [x] 字符串处理
  • [x] 验证器
  • [x] 热重启
  • [x] 守护进程
  • [x] 异常上报
  • [x] 终端应用
  • [x] 协程池
  • [x] HTML 解析
  • [ ] 数据库操作
  • [ ] ...

LICENSE

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].