package
0.0.0-20250331170347-98e59e8ed099
Repository: https://github.com/nbvghost/dandelion.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetPkgPath from encoding/gob/type.go:836.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
分析域名 返回域名前缀,域名.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
func EncodeShareKey(UserID, ProductID uint) string { buffer := bytes.NewBuffer(make([]byte, 0)) binary.Write(buffer, binary.LittleEndian, &UserID) binary.Write(buffer, binary.LittleEndian, &ProductID) da := hex.EncodeToString(buffer.Bytes()) //0123456789abcdef var hashkey = "10a29f38b45e7c6d" var hashData = "" for _, value := range da { switch string(value) { case "a": hashData += string(hashkey[10]) case "b": hashData += string(hashkey[11]) case "c": hashData += string(hashkey[12]) case "d": hashData += string(hashkey[13]) case "e": hashData += string(hashkey[14]) case "f": hashData += string(hashkey[15]) default: index, _ := strconv.Atoi(string(value)) hashData += string(hashkey[index]) } } return hashData }*/func DecodeShareKey(ShareKey string) (UserID, ProductID uint) { var hashkey = "10a29f38b45e7c6d" var baseStr = "0123456789abcdef" //65c3421a11111111aa391b1911111111 var readyData = "" for _, value := range ShareKey { for index, hashkeyValue := range hashkey { if strings.EqualFold(string(value), string(hashkeyValue)) { readyData += string(baseStr[index]) break } } } b, err := hex.DecodeString(readyData) log.Println(err) buffer := bytes.NewBuffer(b) binary.Read(buffer, binary.LittleEndian, &UserID) binary.Read(buffer, binary.LittleEndian, &ProductID) //_ShareKey, _ := url.QueryUnescape(ShareKey) //arrs := strings.Split(_ShareKey, ",") //UserID, _ = strconv.ParseUint(arrs[0], 10, 64) //ProductID, _ = strconv.ParseUint(arrs[1], 10, 64) return }*/.

# Variables

No description provided by the author

# Structs

No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author