mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-06 16:36:51 +08:00
18 lines
210 B
Go
18 lines
210 B
Go
package main
|
|
|
|
// #include <unistd.h>
|
|
import "C"
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
func sleep() {
|
|
go func() {
|
|
C.sleep(1000000000)
|
|
fmt.Println("I slept")
|
|
}()
|
|
fmt.Println("Hello world")
|
|
time.Sleep(time.Minute)
|
|
}
|