golib

package module
v0.0.0-...-7e538a0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseExcel

func ParseExcel(filename, sheetname string, headerLine int, obj interface{}) error

func ParseExcel2

func ParseExcel2(sheet *xlsx.Sheet, headerLine int, obj interface{}) error

func ParseExcel3

func ParseExcel3(filename string, sheetId int, headerLine int, obj interface{}) error

func RemoveDuplicateInt

func RemoveDuplicateInt(intSlice []int) []int

func RemoveDuplicateStr

func RemoveDuplicateStr(strSlice []string) []string

func ScanFile

func ScanFile(fn string, trim bool) ([]string, error)

Types

type ConcurrentLimit

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

func (*ConcurrentLimit) End

func (l *ConcurrentLimit) End()

func (*ConcurrentLimit) Start

func (l *ConcurrentLimit) Start()

func (*ConcurrentLimit) Wait

func (l *ConcurrentLimit) Wait()

type ConcurrentLimitWaitGroup

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

func (*ConcurrentLimitWaitGroup) End

func (l *ConcurrentLimitWaitGroup) End()

func (*ConcurrentLimitWaitGroup) Start

func (l *ConcurrentLimitWaitGroup) Start()

func (*ConcurrentLimitWaitGroup) Wait

func (l *ConcurrentLimitWaitGroup) Wait()

type Limiter

type Limiter interface {
	Start()
	End()
	Wait()
}

func NewConcurrentLimit

func NewConcurrentLimit(concurrent int) Limiter

func NewConcurrentLimitWaitGroup

func NewConcurrentLimitWaitGroup(concurrent int) Limiter

func NewNopLimiter

func NewNopLimiter() Limiter

type NopLimit

type NopLimit struct {
}

func (*NopLimit) End

func (l *NopLimit) End()

func (*NopLimit) Start

func (l *NopLimit) Start()

func (*NopLimit) Wait

func (l *NopLimit) Wait()

Directories

Path Synopsis
generate struct from form data such as ie=utf-8&kw=%E7%94%9F%E4%B8%AA%E5%A5%B3%E5%AD%A9&fid=820625&tid=4797520575&floor_num=24&quote_id=98339446889&rich_text=1&tbs=a71f7e74bb9fd3621474863536&content=tako~&lp_type=0&lp_sub_type=0&new_vcode=1&tag=11&repostid=98339446889&anonymous=0&vcode=&vcode_md5=
generate struct from form data such as ie=utf-8&kw=%E7%94%9F%E4%B8%AA%E5%A5%B3%E5%AD%A9&fid=820625&tid=4797520575&floor_num=24&quote_id=98339446889&rich_text=1&tbs=a71f7e74bb9fd3621474863536&content=tako~&lp_type=0&lp_sub_type=0&new_vcode=1&tag=11&repostid=98339446889&anonymous=0&vcode=&vcode_md5=

Jump to

Keyboard shortcuts

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