Skip to content

Commit

Permalink
add func
Browse files Browse the repository at this point in the history
  • Loading branch information
yoritin committed Sep 5, 2020
1 parent 7aa0f53 commit 5c92eb7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/functions/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package main

import (
"fmt"
)

func add(x int, y int) int {
return x + y
}

func main() {
fmt.Println(add(10, 20))
}

0 comments on commit 5c92eb7

Please sign in to comment.