1234567891011121314151617181920212223242526272829 |
- package main
- import (
- "AIT/initialize"
- "os"
- )
- //@title AIT-go AI测试
- //@version 1.0
- //@description AI测试
- //@contact.name Develoven
- //@contact.email develoven@163.com
- //@contact.url https://www.cnblogs.com/wormworm/
- func main() {
- initialize.Run()
- //var f1 = float64(5000)
- //var f2 = 6757.94
- //decimalValue := decimal.NewFromFloat(f1).Add(decimal.NewFromFloat(f2))
- //fmt.Println(decimalValue.Float64())
- path := "./logs/2023-11-30/"
- err := os.MkdirAll(path, os.ModePerm)
- if err != nil {
- panic(err)
- return
- }
- file, _ := os.OpenFile(path+"a.log", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0666)
- defer file.Close()
- file.WriteString("lksjdlsdklas")
- }
|