Go basic syntax

tags: #public

Sample code


package main

import (
	"fmt"
	"io/ioutill"
	m "math"
	"os"
	"strconv"
)

func main() {
	fmt.Println("Hello world")
	
	beyondHello()

}

func beyondHello() {
	var x int
	x = 3
	y := 4
	sum, prod = learnMultiple(x, y)
	fmt.Println("sum: ", sum, "prod:", prod)

}

Backlinks