ZhangZhihui's Blog |
|
||
2024年6月11日
摘要:
package main import ( "fmt" "maps" ) func delete(k string, v int) bool { return v%2 != 0 } func equal(v1 int, v2 float64) bool { return float64(v1) == 阅读全文
摘要:
package main import ( "fmt" "slices" ) func main() { s1 := []int{1, 2, -1, -2} s2 := slices.Clone(s1) fmt.Printf("%p\n", s1) fmt.Printf("%p\n", s2) s1 阅读全文
摘要:
阅读全文
2024年6月10日
摘要:
package main import ( "encoding/csv" "log" "os" ) type Record struct { Name string Surname string Number string LastAccess string } var myData = []Rec 阅读全文
摘要:
阅读全文
摘要:
package main import ( crand "crypto/rand" "encoding/base64" "fmt" mrand "math/rand" "strings" ) const ( // As we only want to get printable ASCII char 阅读全文
摘要:
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(), 阅读全文
摘要:
package main import ( "fmt" "os" "path/filepath" ) func main() { args := os.Args if len(args) == 1 { fmt.Println("Please provide an argument!") return 阅读全文
2024年6月9日
摘要:
package main import ( "fmt" "os" "strconv" ) func main() { arguments := os.Args if len(arguments) == 1 { fmt.Println("Not enough arguments") } var tot 阅读全文
摘要:
阅读全文
|
Copyright © 2024 ZhangZhihuiAAA
Powered by .NET 9.0 on Kubernetes |