ZhangZhihui's Blog  

2024年6月10日

摘要: package main import ( "encoding/csv" "log" "os" ) type Record struct { Name string Surname string Number string LastAccess string } var myData = []Rec 阅读全文
posted @ 2024-06-10 20:58 ZhangZhihuiAAA 阅读(3) 评论(0) 推荐(0) 编辑
 
摘要: 阅读全文
posted @ 2024-06-10 20:16 ZhangZhihuiAAA 阅读(2) 评论(0) 推荐(0) 编辑
 
摘要: package main import ( crand "crypto/rand" "encoding/base64" "fmt" mrand "math/rand" "strings" ) const ( // As we only want to get printable ASCII char 阅读全文
posted @ 2024-06-10 17:40 ZhangZhihuiAAA 阅读(6) 评论(0) 推荐(0) 编辑
 
摘要: package main import ( "fmt" "io" "log" "os" "path" ) func main() { flag := os.O_APPEND | os.O_CREATE | os.O_WRONLY logFile := path.Join(os.TempDir(), 阅读全文
posted @ 2024-06-10 15:36 ZhangZhihuiAAA 阅读(5) 评论(0) 推荐(0) 编辑
 
摘要: package main import ( "fmt" "os" "path/filepath" ) func main() { args := os.Args if len(args) == 1 { fmt.Println("Please provide an argument!") return 阅读全文
posted @ 2024-06-10 15:27 ZhangZhihuiAAA 阅读(4) 评论(0) 推荐(0) 编辑