github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/website/source/docs/apps/go/index.html.md (about) 1 --- 2 layout: "app_go" 3 page_title: "Go - App Types" 4 sidebar_current: "docs-go-index" 5 description: |- 6 The Go application type is used to develop general Go-based applications. 7 --- 8 9 # Go App Type 10 11 **Type:** `go` 12 13 The Go application type is used to develop general Go-based applications. 14 15 ## GOPATH Detection 16 17 Go is very particular about the directory structure of code so that 18 loading dependencies and building binaries happens in a consistent way. 19 See the Go [documentation on the GOPATH](https://golang.org/doc/code.html#GOPATH) 20 for more information. 21 22 Without any configuration, Otto will attempt to discover the proper import path 23 automatically. This works for getting started with Go and Otto, but we 24 recommend [specifying the import path explicitly](/docs/apps/go/customization.html). 25 26 To discover the import path, Otto inspects your environment for a GOPATH 27 environment variable. If it is found, it determines the subdirectory (if any) 28 that your application is in and uses that for the import path. If any 29 of this fails, then Otto will put your application at a default location 30 outside of the GOPATH. It is highly likely that this result in broken builds. 31 32 ## Godep 33 34 If you're using [Godep](https://github.com/tools/godep), then this will 35 continue to work well with Otto. No special changes are necessary. The 36 workflow for development is the same as outside: use `godep go` instead of 37 `go`. 38 39 Otto will detect if you're using Godep by seeing the `Godep` folder and will 40 automatically install it for you, so it should be available on the PATH.