A clean, Markdown-based publishing platform made for writers. Write together, and build a community. https://writefreely.org
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

18 行
266 B

  1. package writefreely
  2. import (
  3. "encoding/gob"
  4. "math/rand"
  5. "os"
  6. "testing"
  7. "time"
  8. )
  9. // TestMain provides testing infrastructure within this package.
  10. func TestMain(m *testing.M) {
  11. rand.Seed(time.Now().UTC().UnixNano())
  12. gob.Register(&User{})
  13. os.Exit(m.Run())
  14. }