import ( "golang.org/x/time/rate" "io" ) type rateLimitedReader struct { r io.Reader limiter *rate.Limiter } func (rlr *rateLimitedReader) Read(p []byte) (int, error) { n, err := rl
func CreateId(db *gorm.DB) int { var configs []Config db.Select("pname").Find(&configs) var usedNumbers []int for _, config := range configs { if strings.HasPrefix(config.Pname, "ppp") {
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号