Skip to content
/ mix Public

✨ Standard Toolkit for Go fast development / Go 快速开发标准工具包

License

Notifications You must be signed in to change notification settings

mix-go/mix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Produced by OpenMix: https://openmix.org



MixPHP

Mix Go

English | 中文

MixGo is a Go rapid development standard toolkit; the internal modules are highly decoupled, and the overall code is built on multiple independent modules. Even if users do not use our mixcli scaffolding to quickly generate code, they can also use these independent modules. For example: you can use xcli alone to build your command-line interaction; use xsql to call the database; use xwp to handle MQ queue consumption; you can freely combine all modules like building blocks.

Independent Modules

All core modules can be used independently.

  • mix-go/mixcli Scaffold to quickly create Go projects, similar to Vue CLI in the frontend field.
  • mix-go/xcli Command-line interaction and command management tool, also includes command-line parameter acquisition, middleware, program daemon, etc.
  • mix-go/xsql Lightweight database based on database/sql, fully functional and supports any database driver.
  • mix-go/xrpc Assistant for gRPC and Gateway.
  • mix-go/xdi IoC, DI library for handling object dependencies, can implement unified dependency management, global object management, dynamic configuration refresh, etc.
  • mix-go/xwp A universal work pool, coroutine pool, can dynamically expand and shrink.
  • mix-go/xhttp A highly efficient HTTP library.
  • mix-go/xutil A set of tools to keep Golang sweet.

Development Documentation

Quick Start

Provides ready-to-use scaffolding tools to quickly create projects and produce immediate output.

go install github.com/mix-go/mixcli@latest
$ mixcli new hello
Use the arrow keys to navigate: ↓ ↑ → ← 
? Select project type:
  ▸ CLI
    API
    Web (contains the websocket)
    gRPC

If there is an error during compilation, tidy up the dependencies.

go mod tidy

Goland

Examples

AD CONNMIX Gateway

CONNMIX Gateway - Programmable distributed long connection gateway

  • Can be used for chat rooms, live pop-ups, IM instant messaging, online customer service, online games, hardware communication, smart home, IoT and other areas of development
  • A few lines of code, free to get socket, websocket real-time communication

Technical Discussion

Zhihu: https://www.zhihu.com/people/onanying
Official QQ Group: 284806582, 825122875 Secret Password: gopher

PHP Framework

OpenMix also has PHP ecosystem frameworks:

License

Apache License Version 2.0, https://www.apache.org/licenses/