crypto.go   A
last analyzed

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A gotil.Md5 0 2 1
1
package gotil
2
3
import "github.com/gotilty/gotil/internal"
4
5
//MD5 returns the MD5 checksum of the data.
6
//Just works with all primitive types.
7
//If given parameter is different type instead of string, firstly, it will convert the given parameter to string with gotil.ToString().
8
func Md5(a interface{}) (string, error) {
9
	return internal.Md5(a)
10
}
11