From b65d2134f51360fbccc3061b9d8d333b9dde6347 Mon Sep 17 00:00:00 2001 From: bel Date: Wed, 1 Mar 2023 20:11:56 -0700 Subject: [PATCH] stub --- README.md | 9 +++++++++ main.go | 16 ++++++++++++++++ src/main.go | 10 ++++++++++ 3 files changed, 35 insertions(+) create mode 100644 README.md create mode 100644 main.go create mode 100644 src/main.go diff --git a/README.md b/README.md new file mode 100644 index 0000000..d2bd666 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# mayhem-party + +Think Dug's Twitch Chat Plays + +* output keyboard; https://github.com/micmonay/keybd_event +* input gamepad; https://github.com/orsinium-labs/gamepad +* gcc plan b; https://github.com/go-vgo/robotgo +* gaaaaaym; https://www.mariowiki.com/Mario_Party_7 +* multiplayer engine; https://parsec.app/features diff --git a/main.go b/main.go new file mode 100644 index 0000000..7bc0b5e --- /dev/null +++ b/main.go @@ -0,0 +1,16 @@ +package main + +import ( + "context" + "mayhem-party/src" + "os/signal" + "syscall" +) + +func main() { + ctx, can := signal.NotifyContext(context.Background(), syscall.SIGINT) + defer can() + if err := src.Main(ctx); err != nil && ctx.Err() == nil { + panic(err) + } +} diff --git a/src/main.go b/src/main.go new file mode 100644 index 0000000..67bbffd --- /dev/null +++ b/src/main.go @@ -0,0 +1,10 @@ +package src + +import ( + "context" + "errors" +) + +func Main(ctx context.Context) error { + return errors.New("not impl") +}