- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleUnaryOp (0.12 sec)
-
src/go/constant/example_test.go
} func ExampleBinaryOp() { // 11 / 0.5 a := constant.MakeUint64(11) b := constant.MakeFloat64(0.5) c := constant.BinaryOp(a, token.QUO, b) fmt.Println(c) // Output: 22 } func ExampleUnaryOp() { vs := []constant.Value{ constant.MakeBool(true), constant.MakeFloat64(2.7), constant.MakeUint64(42), } for i, v := range vs { switch v.Kind() { case constant.Bool:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 3.5K bytes - Viewed (0)