Skip to content

xuzhuoxi/infra-go

Repository files navigation

infra-go


Go version Tags GoDoc Go Report Card test License

A go library.

English | 简体中文

Features

  • Core dependencies: mainly depend on go standard library and golang.org/x extension library.
  • Business dependency: Functions with business nature may depend on third-party libraries, for example: reading yaml configuration, using quic communication, etc.
  • Coupling degree: The coupling degree of core dependencies related packages is average, and the coupling degree of business-related packages is low.
  • Reusable
  • Extensible

Installation

  1. It is required to use go1.16 to have the above version.
  2. go get github.com/xuzhuoxi/infra-go

Usage

  • infra-go is organized in a package structure, and it can be used immediately after importing.
  • For example: using the TCP server function
import "github.com/xuzhuoxi/infra-go/netx/tcpx"

Example

Documentation

Expand view
.
├── alg: Common algorithm
│   ├── astar: AStar algorithm supported 2D 3D static path finding.
├── binaryx: Binary data serialization and deserialization.
├── bytex: Byte slice and byte buff serialization and deserialization.
├── cmdx: Command line input listening, interpretation and processing.
├── cryptox: Encrypt.
├── encodingx: Encode and decode.
│   ├── gobx: Gob encode and decode.
│   ├── jsonx: Json encode and decode.
├── graphicx: Graphic and color processing library, image color correlation function
│   ├── blendx: blend mode support
├── imagex: Image processing library, including loading and saving processing of various image formats
│   ├── formatx: Image format support
│   │   ├── jpegx: jpg,jpeg,jps support
│   │   ├── pngx: png support
│   ├── resizex: resize support
├── errorsx: error
├── eventx: A simple event module.
├── extendx: Common extension.
│   ├── protox: Proto Extension.
├── lang: Some commonly used functions for go language.
│   ├── listx: go list
├── logx:  A log module
├── mathx: A set of math methods.
├── netx:  Net module, include server and client module.
├── osxu:  A set of function for OS.
├── regexpx: A set of commonly used regular expressions
├── slicex: A set of slice functions for basic structure.
├── stringx: A set of functions for string.
├── timex: A set of functions for timer

Contact

xuzhuoxi
xuzhuoxi@gmail.com or mailxuzhuoxi@163.com

License

"infra-go" source code is available under the MIT License.

Packages

No packages published

Languages