utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallPath

func CallPath(s int) string

func ListContainStr

func ListContainStr(l []string, s string) (bool, int)

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