更新用法

This commit is contained in:
Yun
2024-08-11 22:19:28 +08:00
parent 8d3bd7cade
commit 3a4c3e58e6
4 changed files with 51 additions and 9 deletions
+7
View File
@@ -16,6 +16,13 @@ func defaultOptions() *options {
}
}
// 设置
func InitLangx(ops ...Option) {
for _, opt := range ops {
opt(l.ops)
}
}
type Option func(*options)
// 设置默认的code