mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-07 17:00:54 +08:00
add example files
This commit is contained in:
15
hack/sleep.go
Normal file
15
hack/sleep.go
Normal 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")
|
||||
}
|
Reference in New Issue
Block a user