diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-05 22:22:46 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-05 22:23:09 +0800 |
commit | 272534584376c81116db5199fd2e4216e3698192 (patch) | |
tree | 72fdac8c31f0d92e77f407f3cf7f9991cdb8724c /config.go | |
parent | Move scfg into the repo and don't error out on unknown fields (diff) | |
download | forge-272534584376c81116db5199fd2e4216e3698192.tar.gz forge-272534584376c81116db5199fd2e4216e3698192.tar.zst forge-272534584376c81116db5199fd2e4216e3698192.zip |
scfg: Error out when required directives are missingv0.1.25
Diffstat (limited to 'config.go')
-rw-r--r-- | config.go | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -69,8 +69,6 @@ type Config struct { // it to the global [config] struct. This may race with concurrent reads from // [config]; additional synchronization is necessary if the configuration is to // be made reloadable. -// -// TODO: Error out when there are missing fields func (s *Server) LoadConfig(path string) (err error) { var configFile *os.File if configFile, err = os.Open(path); err != nil { |