basics

package
v0.0.0-...-8f7cc5f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Create a huge number by shifting a 1 bit left 100 places.
	// In other words, the binary number that is 1 followed by 100 zeroes.
	Big = 1 << 100 // An untyped constant takes the type needed by its context.
	// Shift it right again 99 places, so we end up with 1<<1, or 2.
	Small = Big >> 99
)

parenthesized, "factored" const statement. Only need to use "const" 1 time Numeric constants are high-precision values.

Variables

This section is empty.

Functions

func TArrays

func TArrays()

TArrays resume https://golang.org/ref/spec#Array_types

func TControlFlow

func TControlFlow()

TControlFlow does ...

func TConversion

func TConversion()

TConversion does ...

func TDefer

func TDefer()

TDefer does ...

func TExportedNames

func TExportedNames()

TExportedNames does ...

func TForLoops

func TForLoops()

TForLoops do

func TFunction

func TFunction()

TFunction does ...

func TImports

func TImports()

TImports do...

func TIota

func TIota()

TIota do

func TLoop

func TLoop()

TLoop does ... The basic for loop has three components separated by semicolons:

the init statement: executed before the first iteration
the condition expression: evaluated before every iteration
the post statement: executed at the end of every iteration

The init statement will often be a short variable declaration The variables declared there are visible only in the scope of the for statement. The loop will stop iterating once the boolean condition evaluates to false.

func TMaps

func TMaps()

TMaps does ...

func TNumericConstants

func TNumericConstants()

TNumericConstants does ...

func TPackages

func TPackages()

TPackages do

func TPointers

func TPointers()

TPointers resume https://golang.org/ref/spec#Pointer_types (data type, initiation, address operator and dereferencing)

func TSlices

func TSlices()

TSlices does An array has a fixed size. A slice, on the other hand, is a dynamically-sized, flexible view into the elements of an array. In practice, slices are much more common than arrays.

func TStructs

func TStructs()

TStructs does ...

func TTypes

func TTypes()

TTypes does

func TVariables

func TVariables()

TVariables does ...

Types

type Vertex

type Vertex struct {
	X int
	Y int
}

Vertex is ...

type Vertices

type Vertices struct {
	Lat, Long float64
}

Vertices does ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL