gotil.Md5   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
nop 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