Go Server Pages previously relied heavily on GOPATH
to find local packages, including the gosp
package required for Go Server Pages's operation. With Go's tooling infrastructure becoming increasingly hostile to GOPATH
s, Go Server Pages has been updated to work instead with modules. Correspondingly, version 2.0.0 of Go Server Pages requires a slightly different Apache configuration. While GospGoPath
still exists in a limited capacity, GospModReplace
is the primary way to provide access to server-local modules (or to perform other module replacements). Fortunately, Web pages with embedded Go code do not need to be modified; only the Apache configuration must be updated to use Go Server Pages v2.0.0.