摘要: For given function type Fn, and any type A (any in this context means we don't restrict the type, and I don't have in mind any type 😉) create a gener 阅读全文
posted @ 2022-09-13 21:06 Zhentiw 阅读(11) 评论(0) 推荐(0) 编辑
摘要: Implement ReplaceAll<S, From, To> which replace the all the substring From with To in the given string S For example type replaced = ReplaceAll<'t y p 阅读全文
posted @ 2022-09-13 20:57 Zhentiw 阅读(41) 评论(0) 推荐(0) 编辑
摘要: package main import ( "bufio" "fmt" "os" "strings" ) type name struct { fname []byte lname []byte } func main() { fmt.Print("File path ") var filename 阅读全文
posted @ 2022-09-13 20:39 Zhentiw 阅读(12) 评论(0) 推荐(0) 编辑