Skip to content

yann66666/utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

utils

一些工具类 对一些标准库的封装,实现额外的功能

sync_util

Once 实现具有 error 返回值的sync.Once

var once sync_utils.Once
if err := once.Do(func() error {
      //do something...
      return nil
}); err != nil {
      //do something
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages