We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe6f8e5 commit 0a994d3Copy full SHA for 0a994d3
README.md
@@ -37,10 +37,10 @@ func Foo(optionsVariableParams ...FooOptions) {
37
func main() {
38
39
// 不传递参数
40
- Foo()
+ Foo() // Output: default foo
41
42
// 传递参数
43
- Foo(FooOptions{Foo: "custom foo"})
+ Foo(FooOptions{Foo: "custom foo"}) // Output: custom foo
44
45
}
46
```
examples/main.go
@@ -24,9 +24,9 @@ func Foo(optionsVariableParams ...FooOptions) {
24
25
26
27
28
29
30
31
32
0 commit comments