| 1 | # Locating main.go |
| 2 | |
| 3 | Godo compiles and runs a file at the relative path `Gododir/main.go`. If the path does not exist at the current directory, parent directories are searched. |
| 4 | |
| 5 | For example, given this directory structure: |
| 6 | |
| 7 | ``` |
| 8 | mgutz/ |
| 9 | Gododir/ |
| 10 | main.go |
| 11 | project1/ |
| 12 | Gododir/ |
| 13 | main.go |
| 14 | project2 |
| 15 | |
| 16 | ``` |
| 17 | |
| 18 | * Running `godo` inside of project1 uses `project1/Gododir/main.go`. |
| 19 | * Running `godo` inside of project2 uses `mgutz/Gododir/main.go` |
| 20 | |
| 21 |