removed repeated GetId functions using struct embedding

This commit is contained in:
2024-12-27 16:52:27 +09:00
parent f1572f9321
commit 9d266180e9
9 changed files with 175 additions and 134 deletions

View File

@ -15,7 +15,6 @@ import "sync"
import "syscall"
import "time"
// Don't change these items to 'const' as they can be overridden externally with a linker option
var HODU_NAME string = "hodu"
var HODU_VERSION string = "0.0.0"
@ -375,7 +374,7 @@ func main() {
if flgs.NArg() > 0 { goto wrong_usage }
if (cfgfile != "") {
if cfgfile != "" {
cfg, err = load_server_config(cfgfile)
if err != nil {
fmt.Printf ("ERROR: failed to load configuration file %s - %s\n", cfgfile, err.Error())