mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-03 03:28:03 -05:00
* bump dependencies Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> * bump reva and add config options Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de> --------- Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
14 lines
212 B
Go
14 lines
212 B
Go
package source
|
|
|
|
import (
|
|
"crypto/md5"
|
|
"fmt"
|
|
)
|
|
|
|
// Sum returns the md5 checksum of the ChangeSet data.
|
|
func (c *ChangeSet) Sum() string {
|
|
h := md5.New()
|
|
h.Write(c.Data)
|
|
return fmt.Sprintf("%x", h.Sum(nil))
|
|
}
|