You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
392 B

package main
import (
"context"
"syscall"
"gitoa.ru/go-4devs/closer"
"gitoa.ru/go-4devs/console"
"gitoa.ru/go-4devs/mime/scripts/command"
)
func main() {
ctx, cancel := context.WithCancel(context.Background())
closer.AddLast(func() error {
cancel()
return nil
})
go func() {
closer.Wait(ctx, syscall.SIGTERM, syscall.SIGINT)
}()
console.Execute(ctx, command.Mime())
}