duptool

package module
v0.0.0-...-0dd1f14 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: GPL-2.0 Imports: 1 Imported by: 0

README

duptool

简单的golang去重工具,开销少

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeDuplicate

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

func NewDeDup

func NewDeDup(timeset int64, max int) *DeDuplicate

创建一个新的去重对象,设置超时时间为timeset,最大容量为max,max<1则不限制容量

func (*DeDuplicate) DukChk

func (dedup *DeDuplicate) DukChk(val string) bool

返回true为重复,否则未重复,且放入缓存比较队列

type DupNode

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

Jump to

Keyboard shortcuts

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