utils

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: MIT Imports: 3 Imported by: 0

README

utils

update

- v0.1.3 更新log HandleErrors 级别
- v0.1.2 添加了CallPath 方法
- v0.1.1 更新了一些方法和处理bug
- v0.1.0 更新了 log safe_bool fast_locker

Documentation

Index

Constants

View Source
const (
	Version = "v0.1.3"
)

Variables

This section is empty.

Functions

func CallPath added in v0.1.2

func CallPath(s int) string

Types

type FastLocker

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

func (*FastLocker) Lock

func (mu *FastLocker) Lock()

func (*FastLocker) Unlock

func (mu *FastLocker) Unlock()

type SafeBool

type SafeBool uint32

线程安全的标志位 set 方法保证置换操作的原子性

func (*SafeBool) ForceSetFalse

func (b *SafeBool) ForceSetFalse()

func (*SafeBool) ForceSetTrue

func (b *SafeBool) ForceSetTrue()

func (*SafeBool) IfTrue

func (b *SafeBool) IfTrue() bool

func (*SafeBool) SetFalse

func (b *SafeBool) SetFalse() bool

func (*SafeBool) SetTrue

func (b *SafeBool) SetTrue() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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