Documentation ¶
Overview ¶
Package util provides utility functions for the integration package.
Index ¶
- Constants
- func AdaptiveK(length, min, max, N int) int
- func CreateShingles(data []byte, k int) map[string]struct{}
- func DecodeBase64(encoded string) ([]byte, error)
- func EncodeBase64(decoded []byte) string
- func GetMockByKind(mocks []*models.Mock, kind string) []*models.Mock
- func IsASCII(s string) bool
- func JaccardSimilarity(setA, setB map[string]struct{}) float64
Constants ¶
View Source
const ( SCRAM_SHA_1 = "SCRAM-SHA-1" SCRAM_SHA_256 = "SCRAM-SHA-256" )
scram enum values
Variables ¶
This section is empty.
Functions ¶
func CreateShingles ¶
func DecodeBase64 ¶
func EncodeBase64 ¶
func JaccardSimilarity ¶
JaccardSimilarity computes the Jaccard similarity between two sets of shingles.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.