Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Packages

.
├── src
│   └── github.com
│         └── szabgab
│                └── myrepo
│                      └── mymath.go
├── bin
├── pkg
    └── use.go
package main

import (
	"fmt"
	"math"
	"mymath"
)

func main() {
	fmt.Println("Hello World")

	fmt.Println(math.Pi)
	fmt.Println(math.Sin(3))

	fmt.Println(mymath.Add(3, 7))
}
package mymath

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


GOPATH=$(pwd) go run use.go