gotools

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: MIT Imports: 7 Imported by: 0

README

gotools

basic tools in GO

list

list description
id Unique id generation algorithm, support distributed
sort sort algorithm like quick sort,merge sort
limit Current limit algorithm
Read file's path name read file's path name,and the children folder's file path name

HERE

项目 介绍
对我的赞助 p
便宜服务器推荐 阿里云梯子服务器:支持支付宝
微信公众号 p
知识讨论微信群 p
我的社交平台 b站YouTube微博,抖音:googege

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileRecipient

func FileRecipient(done <-chan bool, paths <-chan string, result chan *resultValue)

file recipient.

func Read

func Read(root string) (map[string][md5.Size]byte, error)

return a map[string][md5.Size]byte string is path [md5.Size]byte mean the file's only Identifier

func ReadFile

func ReadFile(root string) ([]string, error)

put a root path,and return whole file path.

func WalkFile

func WalkFile(done chan bool, root string) (<-chan string, <-chan error)

return the paths.

Types

This section is empty.

Directories

Path Synopsis
todo :db Number mode
todo :db Number mode

Jump to

Keyboard shortcuts

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