golangutils

package module
v0.0.0-...-4efb104 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 5 Imported by: 1

README

golang utils

golang的开发工具包

Thanks

jetbrains

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CookiesMerge

func CookiesMerge(old, new []*http.Cookie) []*http.Cookie

func Copy

func Copy(src interface{}) interface{}

Copy creates a deep copy of whatever is passed to it and returns the copy in an interface{}. The returned value will need to be asserted to the correct type.

func GetEnvDefault

func GetEnvDefault(key, defVal string) string

func IsBlank

func IsBlank(value reflect.Value) bool

Types

type GPool

type GPool struct {
	// contains filtered or unexported fields
}

func NewGPool

func NewGPool(maxSize int) *GPool

func (*GPool) Add

func (s *GPool) Add(delta int)

func (*GPool) Done

func (s *GPool) Done()

func (*GPool) Wait

func (s *GPool) Wait()

type Interface

type Interface interface {
	DeepCopy() interface{}
}

Jump to

Keyboard shortcuts

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