main.go 660 B

1234567891011121314151617181920212223242526272829
  1. package main
  2. import (
  3. "AIT/initialize"
  4. "os"
  5. )
  6. //@title AIT-go AI测试
  7. //@version 1.0
  8. //@description AI测试
  9. //@contact.name Develoven
  10. //@contact.email develoven@163.com
  11. //@contact.url https://www.cnblogs.com/wormworm/
  12. func main() {
  13. initialize.Run()
  14. //var f1 = float64(5000)
  15. //var f2 = 6757.94
  16. //decimalValue := decimal.NewFromFloat(f1).Add(decimal.NewFromFloat(f2))
  17. //fmt.Println(decimalValue.Float64())
  18. path := "./logs/2023-11-30/"
  19. err := os.MkdirAll(path, os.ModePerm)
  20. if err != nil {
  21. panic(err)
  22. return
  23. }
  24. file, _ := os.OpenFile(path+"a.log", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0666)
  25. defer file.Close()
  26. file.WriteString("lksjdlsdklas")
  27. }