Steel/steel.go

27 lines
445 B
Go
Raw Normal View History

package main
import (
"cimeyclust.com/steel/pkg/cmd"
"cimeyclust.com/steel/pkg/net"
"sync"
)
func main() {
// Channel for stopping the program
stopChan := make(chan struct{})
var wg sync.WaitGroup
// Start the console handler
wg.Add(1)
go cmd.Start(&wg, stopChan)
// Start the network server
wg.Add(1)
go net.Start("localhost:8080", stopChan, &wg)
2023-12-16 20:52:05 +01:00
cmd.Logger.Info("Started")
// Wait for all components to finish
wg.Wait()
}