gost

module
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2021 License: Apache-2.0

README

gost

Build Status codecov GoDoc Go Report Card license

A go sdk for Apache Dubbo-go.

bytes

  • BytesBufferPool

bytes.Buffer pool

  • SlicePool

slice pool

container

  • queue

Queue

  • set

HashSet

log

output log with color and provides pretty format string

math

  • Decimal

net

  • GetLocalIP() (string, error)
  • IsSameAddr(addr1, addr2 net.Addr) bool
  • ListenOnTCPRandomPort(ip string) (*net.TCPListener, error)
  • ListenOnUDPRandomPort(ip string) (*net.UDPConn, error)

page

Page for pagination. It contains the most common functions like offset, pagesize.

runtime

  • GoSafely

Using go in a safe way.

  • GoUnterminated

Run a goroutine in a safe way whose task is long live as the whole process life time.

runtime

  • GoSafely

Using go in a safe way.

  • GoUnterminated

Run a goroutine in a safe way whose task is long live as the whole process life time.

sync

  • TaskPool

strings

  • IsNil

check a var is nil or not.

time

Timer optimization through time-wheel.

Directories

Path Synopsis
container
set
encoding
hash
package gxlog is based on log4go.
package gxlog is based on log4go.
big
path
Package gxtime encapsulates some golang.time functions Package gxtime encapsulates some golang.time functions Package gxtime encapsulates some golang.time functions Package gxtime encapsulates some golang.time functions Package gxtime encapsulates some golang.time functions Package gxtime encapsulates some golang.time functions ref: https://github.com/AlexStocks/go-practice/blob/master/time/siddontang_time_wheel.go
Package gxtime encapsulates some golang.time functions Package gxtime encapsulates some golang.time functions Package gxtime encapsulates some golang.time functions Package gxtime encapsulates some golang.time functions Package gxtime encapsulates some golang.time functions Package gxtime encapsulates some golang.time functions ref: https://github.com/AlexStocks/go-practice/blob/master/time/siddontang_time_wheel.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL