Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.

For the best experience please use the latest Chrome, Safari or Firefox browser.

Root

mygolangTree

[☕] mygolangTree 0.1-rc1 := \
        Current development version

lang: english | note: {first release}✔


23 23.235

Inventory:

/* opening a file */

▪ os.Open()

-openFile

{▪example, ▪[1]}

5 5.39

Examples ⋁

openFileExample1

os.Open()

vAssign_tFile

file := os.Open("/tmp/textfile")


Footnotes:

assignVar_tStmnt_wNewscanner
scanner := bufio.NewScanner(file)


Footnotes:

  • bufioNewscanner1
    ⇐ import ( "bufio" )
    root

assignVarCmd

func Command(name string, arg …string) *Cmd
Returns Cmd struct to execute syscmd with args

Cmd struct
return &Cmd{
Path: aname,
Args: append([]string{name}, arg…),
err: err,

execCommand

cmd := exec.Command(path)


Footnotes:
root

Methods

-runStruct_fCmd()_iBg
⇐ import("bytes"; "os/exec")

runCmd

cmd.Run()

Footnotes:

ec1

⇐ var out bytes.Buffer

ec2

⇐ cmd.Stdout = &out

15 15.98
exec top
root

Loops

-iterate_thFile
⇐ import("fmt")

「 Semantics
]

scannerLoop_thFile

for scanner.Scan() {
    fmt.Println(scanner.Text())
}

Footnotes:

  • ⇐ import("fmt")
    ⇐ scanner

8 8.107
root

Show

What is the form?
[T|F]

To Perform Task X you must:
Option 1

Option 2

[Image] Arrow pointing to a symbol on a book or dictionary

Q「 -#—#-

Problem Solution Approach
Known Known Waterfall or Agile
Known Unknown Agile
Unknown Unknown Customer Development

▪ bufio.NewScanner()

-assign_tVar__Stmnt_w. \

bufio.NewScanner([_.fileVar])

{▪example, ▪[1]}

7 7.94

Package_exec

■ exec.Command()

-assign_tVar__Stmnt.Command_wPath_tCommand

exec.Command(Path)

{▪example {▪1, ▪2}}
{▪exec/#Command - the go programming language}

  • exec – as in system events:

21 21.190

-
-
-

This document

This document was created by {$author}

Feedback

Feedback is welcome. Please forward to {email [at] example}

20 20.129