TE
科技回声
首页
24小时热榜
最新
最佳
问答
展示
工作
中文
GitHub
Twitter
首页
Go: Functional Options are named args on steroids
3 点
作者
vmihailenco
超过 3 年前
1 comment
DeathArrow
超过 3 年前
In both C# and Nim (and probably other languages ) it's easy to use fluent syntax:<p>MyConfig() .WithTimeout(0).WithDir("/home").DirFromEnv("DIR")