testgo2.go 756 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package main
  2. //"fmt"
  3. //"time"
  4. // "strconv"
  5. //"git.wecise.com/wecise/odbserver/lib/wgwaiter"
  6. func main() {
  7. /*wg := wgwaiter.NewWaiter()
  8. hello := []string{"aaaaaaaaa"}
  9. wg.AddOne()
  10. go func(hello []string) {
  11. fmt.Printf("%v", hello )
  12. time.Sleep(1 * time.Second)
  13. fmt.Printf("%v", hello )
  14. time.Sleep(1 * time.Second)
  15. fmt.Printf("%v", hello )
  16. time.Sleep(1 * time.Second)
  17. wg.Done()
  18. }(hello)
  19. hello = nil
  20. print("wait....")
  21. hello = []string{"bbbbbbb"}
  22. if err := wg.Wait(10 * time.Second) ; err != nil{
  23. print(err)
  24. }
  25. name :=`"name"`
  26. print(name[0]=='"')
  27. name =`'name'`
  28. print(name[0]=='\'')*/
  29. x := 4194304
  30. print("x ==>", x&0x0000000000200000)
  31. y := x & 0x0000FFFF00000000
  32. print("y ==>", y>>32)
  33. //print(" ==>", float64("2e5"))
  34. }