add example files

This commit is contained in:
tinyzimmer
2020-09-30 19:55:44 +03:00
parent 9bfb89b1c8
commit c5fc488c68
2 changed files with 42 additions and 0 deletions

15
hack/sleep.go Normal file
View File

@@ -0,0 +1,15 @@
package main
// #include <unistd.h>
import "C"
import (
"fmt"
)
func main() {
go func() {
C.sleep(1000000000)
fmt.Println("I slept")
}()
fmt.Println("Hello world")
}