refactor(config): rename package _config to config with cfg alias

The config package used `package _config` with a leading underscore,
which is unconventional in Go. Rename to `package config` (matching the
directory name) and use `cfg` as the standard import alias across all
93 importing files.
This commit is contained in:
Houmgaor
2026-02-21 13:20:15 +01:00
parent ad73f2fb55
commit f17cb96b52
98 changed files with 719 additions and 719 deletions

View File

@@ -4,7 +4,7 @@ import (
"bytes"
"erupe-ce/common/byteframe"
"erupe-ce/common/token"
_config "erupe-ce/config"
cfg "erupe-ce/config"
"testing"
)
@@ -210,7 +210,7 @@ func TestDiffItemStacks(t *testing.T) {
}
func TestReadWarehouseEquipment(t *testing.T) {
mode := _config.Z1
mode := cfg.Z1
bf := byteframe.NewByteFrame()
bf.WriteUint32(12345) // WarehouseID
@@ -269,7 +269,7 @@ func TestReadWarehouseEquipment(t *testing.T) {
}
func TestReadWarehouseEquipment_ZeroWarehouseID(t *testing.T) {
mode := _config.Z1
mode := cfg.Z1
bf := byteframe.NewByteFrame()
bf.WriteUint32(0) // WarehouseID = 0
@@ -302,7 +302,7 @@ func TestReadWarehouseEquipment_ZeroWarehouseID(t *testing.T) {
}
func TestMHFEquipment_ToBytes(t *testing.T) {
mode := _config.Z1
mode := cfg.Z1
equipment := MHFEquipment{
WarehouseID: 12345,
@@ -337,7 +337,7 @@ func TestMHFEquipment_ToBytes(t *testing.T) {
}
func TestSerializeWarehouseEquipment(t *testing.T) {
mode := _config.Z1
mode := cfg.Z1
equipment := []MHFEquipment{
{
@@ -373,7 +373,7 @@ func TestSerializeWarehouseEquipment(t *testing.T) {
}
func TestMHFEquipment_RoundTrip(t *testing.T) {
mode := _config.Z1
mode := cfg.Z1
original := MHFEquipment{
WarehouseID: 99999,