Skip to content

colinrs/pkgx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pkgx

golang public library

Go Report Card Build Status GoDoc License

Overview

A golang public library that reduces code writing in daily development and improves development efficiency

package desc note
concurrent Provides the function of concurrency limitation
contextx extended context
di Function of dependency injection
fx golang concurrent execution, similar to python's gevent.spawn method use
http http client
logger logger
shutdown Graceful shutdown of services
structx Some structures, such as set, safe_map, stack, time_wheel
utils Common tools, such as json, copy, ping, cmd execution and other functions

Features

  • add kq:
    • Provides an MQ consumer/producer package. Can provide concurrent consumption
    • sequential submission, current limiting, circuit breaker and other functions

Installation

go get -u github.com/colinrs/pkgx

Usage Example

package main

import (
  "github.com/colinrs/pkgx/logger"
)

func main() {
  logger.Info("test")
}

About

golang utils pkg

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages