aboutsummaryrefslogtreecommitdiff
path: root/handler.go
diff options
context:
space:
mode:
authorGravatar Abhinav Gupta <mail@abhinavg.net> 2023-04-28 05:33:20 -0700
committerGravatar GitHub <noreply@github.com> 2023-04-28 05:33:20 -0700
commitdcec9f7485595ba79512329c103872522f6cb2cf (patch)
treeb4a2cde20ff1fc7d0b33e92c6c1a5dc0930f53cc /handler.go
parenteefdad4a93f81fa4c1ef1c8bacf9e829c4b27400 (diff)
downloadsally-dcec9f7485595ba79512329c103872522f6cb2cf.tar.gz
sally-dcec9f7485595ba79512329c103872522f6cb2cf.tar.zst
sally-dcec9f7485595ba79512329c103872522f6cb2cf.zip
config: Rename Package to PackageConfig, add docs (#84)
Renames the Package struct to PackageConfig to make it clear that it is a configuration struct. This differentiation will help disconnect the configuration-level representation from the runtime representation of this information. This patch also adds documentation to the config package that was previously missing.
Diffstat (limited to 'handler.go')
-rw-r--r--handler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/handler.go b/handler.go
index bbefd30..08c3e4b 100644
--- a/handler.go
+++ b/handler.go
@@ -54,8 +54,8 @@ func (h *indexHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
type packageHandler struct {
+ pkg PackageConfig
pkgName string
- pkg Package
config *Config
}