• Root

    <center style="line-height:0;">mygolangTree</center>

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

    lang: <span style="background:#ddd;">english</span> | note: {first release}✔

    <style type="text/css">
    .view p{font-family:crimson, crimson-webfont !important;}

    • code {font-family:menlo !important;} h1,h2,h3,h4,h5,h6{font-family:Geneva !important;}
      </style>
      <span style="background:#ddd;">23 23.235</span>
  • Inventory:

  • /* opening a file */

    ▪ os.Open()

    -openFile

    {▪example, ▪[1]}

    <span style="background:#ddd;">5 5.39</span>

  • ▪ bufio.NewScanner()

    -assign_tVar__Stmnt_w. \

    bufio.NewScanner([_.fileVar])

    {▪example, ▪[1]}

    <span style="background:#ddd;">7 7.94</span>

  • 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:

    <span style="background:#ddd;">21 21.190</span>

  • -
    -
    -

  • This document

    This document was created by {$author}

    Feedback

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

    <span style="background:#ddd;">20 20.129</span>

  • Examples ⋁

  • openFileExample1

    os.Open()

    vAssign_tFile

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


    <span style="background:#ddd;">Footnotes:</span>

  • assignVar_tStmnt_wNewscanner
    scanner := bufio.NewScanner(file)


    <span style="background:#ddd;">Footnotes</span>:

    • bufioNewscanner1
      ⇐ import ( "bufio" )
      root
  • assignVarCmd

    <table style="overflow:auto;" cellpadding="2" border="1" width=""><tbody><tr><td>func Command(name string, arg …string) *Cmd</td></tr><tr><td>Returns Cmd struct to execute syscmd with args</td></tr></tbody></table>

    <table cellpadding="2" border="1"><tbody><tr><th>Cmd struct</th></tr><tr><td> return &Cmd{
    Path: aname,
    Args: append([]string{name}, arg…),
    err: err,</td></tr></tbody></table>

    execCommand

    cmd := exec.Command(path)


    <span style="background:#ddd;">Footnotes:</span>
    root

  • runCmd

    cmd.Run()

    <span style="background:#ddd;">Footnotes:</span>

    ec1

    ⇐ var out bytes.Buffer

    ec2

    ⇐ cmd.Stdout = &out

    <span style="background:#ddd;">15 15.98</span>
    exec top
    root

  • scannerLoop_thFile

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

    <span style="background:#ddd;">Footnotes:</span>

    • ⇐ import("fmt")
      ⇐ scanner

    <span style="background:#ddd;">8 8.107</span>
    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

{"cards":[{"_id":"3568609848256f862e00003a","treeId":"3566ff600ba6526cd6000008","seq":1067999,"position":0.5,"parentId":null,"content":"# Root\n## <center style=\"line-height:0;\">`mygolangTree`</center>\n```\n[☕] mygolangTree 0.1-rc1 := \\\n\t\tCurrent development version\n```\n____\n**lang**: <span style=\"background:#ddd;\">english</span> | **note**: {first release}✔\n<style type=\"text/css\">\n.view p{font-family:crimson, crimson-webfont !important;}\n* code {font-family:menlo !important;} h1,h2,h3,h4,h5,h6{font-family:Geneva !important;}\n</style>\n<span style=\"background:#ddd;\">23 23.235</span>"},{"_id":"35709d51d521b295b8000012","treeId":"3566ff600ba6526cd6000008","seq":1024841,"position":0.75,"parentId":null,"content":"Inventory:\n\n[x] os.Open\n[ ] bufio.NewScanner\n- [ ] [Package exec](#package_exec)\n\t- [ ] exec.LookPath()\n\t- [ ] exec.Command() \n\t- [x] exec.Run()"},{"_id":"3566ff760ba6526cd600000b","treeId":"3566ff600ba6526cd6000008","seq":1067686,"position":1,"parentId":null,"content":"## /\\* opening a file */\n## ▪ os.Open()\n### -openFile\n**{▪[example](#openfileexample1), ▪[[1]](#of1)}**\n\n<span style=\"background:#ddd;\">5 5.39</span>\n"},{"_id":"356701c20ba6526cd600000c","treeId":"3566ff600ba6526cd6000008","seq":1,"position":1,"parentId":"3566ff760ba6526cd600000b","content":"# Variables\n▪ [-assignVariable_tFile](#vassign_tfile)\n■ [-assignVarible_tStructCmd](#execcommand)\n"},{"_id":"3567056c0ba6526cd600000e","treeId":"3566ff600ba6526cd6000008","seq":1,"position":0.5,"parentId":"356701c20ba6526cd600000c","content":"# **Examples ⋁**"},{"_id":"356716a648256f862e00001d","treeId":"3566ff600ba6526cd6000008","seq":1067619,"position":3,"parentId":"356701c20ba6526cd600000c","content":"## openFileExample1\n```\nos.Open() \n``` \n## vAssign_tFile\n```\nfile := os.Open(\"/tmp/textfile\")\n```\n─\n<span style=\"background:#ddd;\">Footnotes:</span>\n- \n###### of1\n`⇐ import ( \"os\" )`\n▪[openFile[Top]](#-openfile)\n▪[root](#root)"},{"_id":"3567385448256f862e000021","treeId":"3566ff600ba6526cd6000008","seq":1,"position":4,"parentId":"356701c20ba6526cd600000c","content":"##### assignVar_tStmnt_wNewscanner\n```\nscanner := bufio.NewScanner(file)\n```\n\n--\n<span style=\"background:#ddd;\">Footnotes</span>:\n- \n###### bufioNewscanner1\n`⇐ import ( \"bufio\" )`\n[root](#root) "},{"_id":"3570d82c0b65b92090000017","treeId":"3566ff600ba6526cd6000008","seq":1,"position":5,"parentId":"356701c20ba6526cd600000c","content":"# **assignVarCmd**\n<table style=\"overflow:auto;\" cellpadding=\"2\" border=\"1\" width=\"\"><tbody><tr><td>func Command(`name` string, `arg` ...string) `*Cmd`</td></tr><tr><td>Returns `Cmd` struct to execute syscmd with `arg`s</td></tr></tbody></table>\n\n<table cellpadding=\"2\" border=\"1\"><tbody><tr><th>Cmd struct</th></tr><tr><td>\treturn &Cmd{\n\t\t\tPath: aname,\n\t\t\tArgs: append([]string{name}, arg...),\n\t\t\terr: err,</td></tr></tbody></table>\n## execCommand\n\tcmd := exec.Command(path)\n\n--\n<span style=\"background:#ddd;\">Footnotes:</span>\n[root](#root)"},{"_id":"3570d1eed521b295b8000016","treeId":"3566ff600ba6526cd6000008","seq":1,"position":1.5,"parentId":"3566ff760ba6526cd600000b","content":"# Methods\n■ [-runStruct_fCmd()_iBg](#runcmd)\n`⇐ import(\"bytes\"; \"os/exec\")`"},{"_id":"3571cfca7b9560c058000016","treeId":"3566ff600ba6526cd6000008","seq":1,"position":1,"parentId":"3570d1eed521b295b8000016","content":"## runCmd\n\tcmd.Run()\n\n---\n<span style=\"background:#ddd;\">Footnotes:</span>\n###### ec1\n`⇐ var out bytes.Buffer`\n###### ec2\n`⇐ cmd.Stdout = &out`\n\n<span style=\"background:#ddd;\">15 15.98</span>\n[exec top](#package_exec)\n[root](#root)"},{"_id":"3567f17d48256f862e00002f","treeId":"3566ff600ba6526cd6000008","seq":1,"position":2,"parentId":"3566ff760ba6526cd600000b","content":"# Loops\n■ [-iterate_thFile](#scannerloop_thfile)\n\t`⇐ import(\"fmt\")`"},{"_id":"4ba5a4e11dc81b129c000016","treeId":"3566ff600ba6526cd6000008","seq":1034024,"position":3,"parentId":"3566ff760ba6526cd600000b","content":" 「 Semantics\n ]\n❑"},{"_id":"356845ec48256f862e000037","treeId":"3566ff600ba6526cd6000008","seq":973054,"position":0.5,"parentId":"4ba5a4e11dc81b129c000016","content":"## scannerLoop_thFile\n\tfor scanner.Scan() {\n\t\tfmt.Println(scanner.Text())\n\t}\n\n<span style=\"background:#ddd;\">Footnotes:</span>\n- \n`⇐ import(\"fmt\")`\n`⇐ scanner`\n\n<span style=\"background:#ddd;\">8 8.107</span>\n[root](#root)"},{"_id":"4ba5a66f1dc81b129c000017","treeId":"3566ff600ba6526cd6000008","seq":1034022,"position":1,"parentId":"4ba5a4e11dc81b129c000016","content":"## **Show**\nWhat is the form?\n[T|F]"},{"_id":"4ba636c0e545647fd900001a","treeId":"3566ff600ba6526cd6000008","seq":972282,"position":1.5,"parentId":"4ba5a4e11dc81b129c000016","content":"To Perform Task X you must:\n** Option 1 **"},{"_id":"4ba63503e545647fd9000019","treeId":"3566ff600ba6526cd6000008","seq":972281,"position":2,"parentId":"4ba5a4e11dc81b129c000016","content":"** Option 2 **\n\n[Image] Arrow pointing to a symbol on a book or dictionary"},{"_id":"4ba5ad6b1dc81b129c000018","treeId":"3566ff600ba6526cd6000008","seq":1034023,"position":4,"parentId":"3566ff760ba6526cd600000b","content":"Q「 -#--#-\n\n| Problem | Solution | Approach |\n|-|-|-|\n|Known | Known | Waterfall or Agile |\n|Known | Unknown | Agile |\n|Unknown | Unknown | Customer Development |"},{"_id":"3571a71e7b9560c058000013","treeId":"3566ff600ba6526cd6000008","seq":1,"position":1.5,"parentId":null,"content":"## ▪ bufio.NewScanner()\n### -assign_tVar__Stmnt_w. \\\n\n\tbufio.NewScanner([_.fileVar])\n\n**{▪[example](#assignvar_tstmnt_wnewscanner), ▪[[1]](#bufionewscanner1)}**\n\n<span style=\"background:#ddd;\">7 7.94</span>\n"},{"_id":"356887277ced5710a000000f","treeId":"3566ff600ba6526cd6000008","seq":972296,"position":2,"parentId":null,"content":"\n# Package_exec\n## ■ exec.Command()\n### -assign_tVar__Stmnt.Command_wPath_tCommand\n\texec.Command(Path)\n**{▪[example](#execcommand) {▪[1](#ec1), ▪[2](#ec2)}}**\n**{▪[exec/#Command - the go programming language]( http://golang.org/pkg/os/exec/?ModPagespeed=noscript#Command )}**\n- **exec** – as in system events:\n![](http://upload.wikimedia.org/wikipedia/commons/thumb/0/0f/Clear-gnulinux.gif/220px-Clear-gnulinux.gif)\n\n<span style=\"background:#ddd;\">21 21.190</span>\n"},{"_id":"4ba5a1781dc81b129c000015","treeId":"3566ff600ba6526cd6000008","seq":972077,"position":2.5,"parentId":null,"content":"## External Links\n-\n-\n-"},{"_id":"356f8d5df59c735d2d000011","treeId":"3566ff600ba6526cd6000008","seq":972176,"position":3,"parentId":null,"content":"### This document\nThis document was created by {$author}\n### Feedback\nFeedback is welcome. Please forward to {email [at] example}\n\n<span style=\"background:#ddd;\">20 20.129</span>\n\n![](https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png)"}],"tree":{"_id":"3566ff600ba6526cd6000008","name":"mygolangtree","publicUrl":"mygolangtree"}}