This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Defining a single-dimensioned array, which will contain all our cars | |
var results() as vehicle | |
// Creating 6 cars (with drivers) | |
// the id is only for information purposes | |
for x as integer = 0 to 5 | |
var result as new vehicle | |
result.id = x | |
select case x | |
case 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
F1 help | |
F3 set or delete bookmark | |
F6 move function | |
F6 & COMMAND change signature | |
CONTROL & SPACE/CONTROL code completion | |
CONTROL & T refactoring options | |
CONTROL & V version control | |
COMMAND & 0 git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
reader := bufio.NewReader(os.Stdin) | |
reader.ReadString('\n') | |
OR: | |
package main | |
import ( | |
"fmt" | |
"github.com/eiannone/keyboard" |