You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: entropy.go
    path of file: ./repos/fibratus/pkg/util/entropy
    
    the code of the file until where you have to start completion: /*
 * Copyright 2021-2022 by Nedim Sabic Sabic
 * https://www.fi
    
func Shannon(value string) int {
	frq := make(map[rune]float64)

	//get frequency of characters
	for _, i := range value {
		frq[i]++
	}

	var sum float64

	for _, v := range frq {
		f := v / float64(len(value))
		sum += f * math.Log2(f)
	}

	return int(math.Ceil(sum*-1)) * len(value)
}