Back to godoc.org
github.com/quii/learn-go-with-tests/integers/v2

package integers

v0.0.0 (4c8f75e)
Latest Go to latest
Published: May 12, 2020 | License: MIT | Module: github.com/quii/learn-go-with-tests

Index

Examples

func Add

func Add(x, y int) int

Add takes two integers and returns the sum of them.

Example

Code:

sum := Add(1, 5)
fmt.Println(sum)

Output:

6
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier