packageの書き忘れを修正

This commit is contained in:
2025-12-26 12:35:03 +09:00
parent 8f2ed68f5b
commit e34602514b

View File

@@ -1,4 +1,9 @@
package config
import "gopkg.in/ini.v1"
type Config struct {
DB struct {
Type string `ini:"DBTYPE"`
Host string `ini:"DBHOST"`
@@ -26,8 +31,6 @@ type Config struct {
} `ini:"security"`
}
import "gopkg.in/ini.v1"
func LoadConfig(filePath string) (*Config, error) {
cfg, err := ini.Load(filePath)
if err != nil {