摘要:
package main import ( "fmt" "io" "log" "net/http" "os" "regexp" "strings" "sync" ) func gomoun(c chan int) { for i := 0; i < 10000; i++ { c <- i } clo 阅读全文
posted @ 2024-12-09 20:53
__username
阅读(16)
评论(0)
推荐(0)
摘要:
func findStr() { testStr := "There are 123 apples and 456 oranges." // 查找所有匹配的子字符串 pattern := `\d+` // 匹配一个或多个数字 re := regexp.MustCompile(pattern) // 阅读全文
posted @ 2024-12-09 16:16
__username
阅读(16)
评论(0)
推荐(0)
摘要:
resp, err := client.Do(req) if err != nil { results <- fmt.Sprintf("Request error: %v", err) return } defer resp.Body.Close() bodyText, err := io.Read 阅读全文
posted @ 2024-12-09 15:53
__username
阅读(21)
评论(0)
推荐(0)

浙公网安备 33010602011771号