DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CSS
Functions in Golang
func add
(
a int
,
b int
)
int
{
c
:
= a
+
b return c
}
func main
(
)
{
fmt.
Println
(
add
(
2
,
1
)
)
}
//=>
3
Source by gowithgolang.com #
PREVIOUS
NEXT
Tagged:
#Functions
#Golang
ADD COMMENT
Topic
COMMENT
Name
4+3 =
Submit