Black Lives Matter
Support the Equal Justice Initiative
Why Go
Getting Started
Discover Packages
About
Discover Packages
github.com/quii/learn-go-with-tests
integers
v2
integers
package
Version v0.0.0-...-c2caa58
Latest
Latest
Go to latest
Feb 16, 2021
MIT
0
Imports
0
Imported by
integers
Version v0.0.0-...-c2caa58
Latest
Go to latest
Feb 16, 2021
MIT
0
Imports
0
Imported by
Main
Versions
Licenses
Imports
Imported By
Outline
Outline
README
Index
Examples
Add(x, y)
Source Files
Directories
Jump to ...
Documentation
Index
Examples
Constants
Variables
Functions
Add(x, y)
Types
Source Files
Documentation
Index
¶
func Add(x, y int) int
Examples
¶
Add
Constants
¶
This section is empty.
Variables
¶
This section is empty.
Functions
¶
func
Add
¶
func Add(x, y
int
)
int
Add takes two integers and returns the sum of them.
Example
¶
sum := Add(1, 5) fmt.Println(sum)
Output:
6
Types
¶
This section is empty.
Source Files
View all
adder.go
Details
Learn more
Valid
go.mod
file
Redistributable license
Tagged version
Stable version
Repository
https://github.com/quii/learn-go-with-tests
Jump to
Close
Keyboard shortcuts
?
: This menu
/
: Search site
f
or
F
: Jump to
Close