Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
doc: Improve comment
Matthew Holt committed
Apr 17, 2020 at 12:03 UTC
f980170909e20194aa963469cba0b47a55d5b02e
1 file changed
+6
-1
modules.go
+6
-1
@@ -65,7 +65,12 @@ type ModuleInfo struct {
65
66
// New returns a pointer to a new, empty
67
// instance of the module's type. This
68
- // function must not have any side-effects.
68
+ // method must not have any side-effects,
69
+ // and no other initialization should
70
+ // occur within it. Any initialization
71
+ // of the returned value should be done
72
+ // in a Provision() method (see the
73
+ // Provisioner interface).
74
New func() Module
75
}
76