Documentation ¶
Index ¶
- func ParseExcel(filename, sheetname string, headerLine int, obj interface{}) error
- func ParseExcel2(sheet *xlsx.Sheet, headerLine int, obj interface{}) error
- func ParseExcel3(filename string, sheetId int, headerLine int, obj interface{}) error
- func RemoveDuplicateInt(intSlice []int) []int
- func RemoveDuplicateStr(strSlice []string) []string
- func ScanFile(fn string, trim bool) ([]string, error)
- type ConcurrentLimit
- type ConcurrentLimitWaitGroup
- type Limiter
- type NopLimit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseExcel ¶
func ParseExcel3 ¶
func RemoveDuplicateInt ¶
func RemoveDuplicateStr ¶
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 NewNopLimiter ¶
func NewNopLimiter() Limiter
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"e_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"e_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= |
Click to show internal directories.
Click to hide internal directories.