feat: meta manage api

This commit is contained in:
Noah Hsu
2022-06-26 19:09:28 +08:00
parent acd4083399
commit 4cef3adc90
10 changed files with 120 additions and 13 deletions

View File

@ -9,7 +9,7 @@ var Rand *rand.Rand
const letterBytes = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
func RandomStr(n int) string {
func String(n int) string {
b := make([]byte, n)
for i := range b {
b[i] = letterBytes[Rand.Intn(len(letterBytes))]