layout corporate, navbar & side bar templ

This commit is contained in:
Sas Andy
2024-05-06 13:27:28 +07:00
parent f527eaa17e
commit 329db2e2ac
20 changed files with 1306 additions and 903 deletions

View File

@@ -0,0 +1,16 @@
package utils
import (
"crypto/md5"
"encoding/hex"
"strings"
"time"
)
func GenerateRandomID(text string) string {
seed := text + time.Now().String()
hash := md5.Sum([]byte(seed))
randomID := hex.EncodeToString(hash[:])
randomID = strings.ReplaceAll(randomID, "-", "")
return randomID
}