Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LeftPad2Len ¶
LeftPad2Len pads s with padStr to match overallLen
func SplitInTwo ¶
SplitInTwo splits a string to two parts by a delimeter
Types ¶
type BoundedWaitGroup ¶
type BoundedWaitGroup struct {
// contains filtered or unexported fields
}
BoundedWaitGroup implements a sized WaitGroup
func NewBoundedWaitGroup ¶
func NewBoundedWaitGroup(cap int) BoundedWaitGroup
NewBoundedWaitGroup initializes a new BoundedWaitGroup
func (*BoundedWaitGroup) Add ¶
func (bwg *BoundedWaitGroup) Add(delta int)
Add performs a WaitGroup Add of a specified delta
func (*BoundedWaitGroup) Done ¶
func (bwg *BoundedWaitGroup) Done()
Done performs a WaitGroup Add of -1
Source Files
¶
- bwg.go
- utils.go
Click to show internal directories.
Click to hide internal directories.