New Packet.lua format, test parsing and entire new lua ecossystem

This commit is contained in:
2025-10-31 17:52:40 -03:00
parent 6c5abdf4d4
commit d3c4a604c3
10 changed files with 643 additions and 59 deletions

View File

@@ -0,0 +1,24 @@
package packet
type Config struct {
BinDir string
}
const defaultBinDir = "/usr/bin"
func checkConfig(cfg *Config) *Config {
if cfg == nil {
return &Config{
BinDir: defaultBinDir,
}
}
if cfg.BinDir == "" {
return &Config{
BinDir: defaultBinDir,
}
} else {
return cfg
}
}