摘要: [选项模式] package main import "fmt" type OptionFunc func(*DoSomethingOption) type DoSomethingOption struct { a int b string c bool } func NewDoSomethingO 阅读全文
posted @ 2024-02-06 17:43 X-Wolf 阅读(3) 评论(0) 推荐(0) 编辑