From dcec9f7485595ba79512329c103872522f6cb2cf Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Fri, 28 Apr 2023 05:33:20 -0700 Subject: 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. --- handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'handler.go') 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 } -- cgit v1.2.3