package config type APIConfig struct { Authentication AuthenticationConfig `yaml:"auth"` } type AuthenticationConfig struct { Accounts []AccountConfig `yaml:"accounts"` } type AccountConfig struct { Username string `yaml:"username"` Password string `ymal:"password"` } func NewDefaultAPIConfig() APIConfig { return APIConfig{ Authentication: AuthenticationConfig{ Accounts: []AccountConfig{ { Username: "admin", Password: "webauthn", }, }, }, } }