mirror of
https://github.com/xxjwxc/public.git
synced 2025-09-26 20:01:19 +08:00
25 lines
316 B
Go
25 lines
316 B
Go
package mymath
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
func Test_order(t *testing.T) {
|
|
ch := make(chan int)
|
|
go func() {
|
|
time.Sleep(10 * time.Second)
|
|
fmt.Println("aaaa")
|
|
ch <- 123
|
|
}()
|
|
|
|
h := <-ch
|
|
fmt.Println("bbbb")
|
|
fmt.Println(h)
|
|
|
|
fmt.Println(Gcd(9, 21))
|
|
fmt.Println(17 * 19)
|
|
fmt.Println(Lcm(17, 19))
|
|
}
|