摘要:
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
阅读(11)
推荐(0)
posted @ 2024-06-10 20:16
ZhangZhihuiAAA
阅读(6)
推荐(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
阅读(19)
推荐(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
阅读(10)
推荐(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
阅读(9)
推荐(0)