Coder Social home page Coder Social logo

godkits's Introduction

godkits

license card go version go report codecov report workflow Go Reference build docs lasted release

the golang development toolkits.

Naming

Go SDK Extensions

  • package start with gox, others same with the go sdk
  • using the x suffix, means extension, like listx, stringx
  • test in the same place

Other Extensions

  • package start with feature name, like http

Usage

import "github.com/acmestack/godkits/log/log"

func TestLog(t *testing.T) {
	log.Info("test")
}

Code Comment

Code comment with method

// TestLog test log
//  @params t tests params
func TestLog(t *testing.T) {
log.Info("test")
}

// NewAsyncWriter Write data with Buffer, this Writer and Closer is thread safety, but WriteCloser parameters not safety.
//  @param w       Writer
//  @param bufSize accept buffer max length
//  @param block   if true, overflow buffer size, will blocking, if false will occur error
//  @return *AsyncLogWriter
func NewAsyncWriter(w io.Writer, bufSize int, block bool) *AsyncLogWriter {
}

Stargazers over time

Stargazers over time

Contribute and Support

godkits's People

Contributors

afumu avatar evanescentum avatar godhth avatar liuzwei avatar moremind avatar qicz avatar qurenneng avatar renzhuyan avatar yunlongn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

godkits's Issues

feature: add a ForEach function to listx

Background & X Problem
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Proposal and Expectation
A clear and concise description of what you want to happen.

Solutions & Y Problems
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

feature: stringx ToInt & ToFloat64 enhance

Add ToIntOrDefault(str string, defVal int) int , ToFloat64OrDefault(str string, defVal float64) float64
and reflactor ToInt(str string) int , ToFloat64(str string) float64 .

fix readme 'Document' link

Enviornment (please complete the following information):

  • OS: [Linux: uname -a]
  • godkits version [e.g. v0.0.1]

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

fix add some test method for log

In package log, there are two files like async_bufwriter.go and async_writer.go has no test file .
I will add some test methods for them.

feature: support go container

migrate container from goutils, major task as follow:

  1. linkedGraph
  2. mapGraph
  3. linkedSet
  4. queue
  5. stack
  6. sortedMap
  7. xlist and skipList
  8. recycleMap
  9. xmap @yunlongn
  10. lru cache @yunlongn

please migrate and test above files.

support id uitls

magrate and test id generator from goutils

  1. snowflake id generator
  2. random id generator

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.