Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/Call-a-function/Go/call-a-function-5.go
Normal file
14
Task/Call-a-function/Go/call-a-function-5.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
type Params struct {
|
||||
a, b, c int
|
||||
}
|
||||
func doIt(p Params) int {
|
||||
return p.a + p.b + p.c
|
||||
}
|
||||
|
||||
func main() {
|
||||
fmt.Println(doIt(Params{a: 1, c: 9})) // prt 10
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue