initial
This commit is contained in:
16
main.go
Normal file
16
main.go
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
"os/signal"
|
||||||
|
|
||||||
|
"gogs.inhome.blapointe.com/imicromouse/src"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
ctx, can := signal.NotifyContext(context.Background())
|
||||||
|
defer can()
|
||||||
|
if err := src.Main(ctx); err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
10
src/main.go
Normal file
10
src/main.go
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
package src
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
"io"
|
||||||
|
)
|
||||||
|
|
||||||
|
func Main(ctx context.Context) error {
|
||||||
|
return io.EOF
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user