Blame view

common/utils_test.go 433 Bytes
29a163be   zhangqijia   fix: CreateReq ui...
1
2
3
4
5
  package common
  
  import (
  	"fmt"
  	"math/rand"
29a163be   zhangqijia   fix: CreateReq ui...
6
7
8
9
10
11
12
13
14
  	"testing"
  )
  
  func TestRandomString(t *testing.T) {
  	rand.Seed(Timex())
  	fmt.Println(RandomName(DefaultName))
  }
  
  func TestRandomName(t *testing.T) {
4255fd8e   zhangqijia   feat: 更新字段
15
16
17
18
19
  	//if err := redisproxy.ConnectRedis(GlobalConf.GameConf.RedisConf.DB, GlobalConf.GameConf.RedisConf.Auth, GlobalConf.GameConf.RedisConf.Address); err != nil {
  	//	logger.Error(err)
  	//	return
  	//}
  	fmt.Println(FirstCharToUpper("name"))
29a163be   zhangqijia   fix: CreateReq ui...
20
  }