Update build docs to clarify usage of .go extension (#2726)

Issue #2716 was caused by a misunderstanding regarding the filename to use when creating a custom build from source. These changes aim to make the instructions more explicit.
This commit is contained in:
Jack Brown 2019-08-26 11:07:07 -07:00 committed by Toby Allen
parent ed4c2775e4
commit a23f707268

View File

@ -93,7 +93,7 @@ There is no need to modify the Caddy code to build it with plugins. We will crea
<!-- TODO: This env variable will not be required starting with Go 1.13 -->
1. Set the transitional environment variable for Go modules: `export GO111MODULE=on`
2. Create a new folder anywhere and within create a Go file (extension `.go`) with the contents below, adjusting to import the plugins you want to include:
2. Create a new folder anywhere and within create a Go file (with an extension of `.go`, such as `main.go`) with the contents below, adjusting to import the plugins you want to include:
```go
package main