Steel/steel.go
2023-12-12 20:59:54 +01:00

25 lines
416 B
Go

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)
// Wait for all components to finish
wg.Wait()
}