2015-05-03

install go language

simple class "Function"
name, two inputs, two output

parameter
  name
  type


object of "Funciton class"

-------
commandline interpreter

menu to create class "Function", objects of "Function", list class "Function"


--------
1)install go lang
https://github.com/golang/go/wiki/Ubuntu

2)Hello World go program

File: hello.go

package main
import "fmt"

func main(){
    /* this is first go program */
    fmt.Println("Hello, World");
}


3)Run the hello.go file
go run hello.go

4)How to read from console/keyboard in go?
A)
var input
fst.Scanln(&input)

--------
atleast define
add, sub, assign, if, print, read
--------
define flow diagram
every step have unique number
start with 1
maxium steps 999
step can be split
like tree
 branch

-

No comments:

Post a Comment