- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for IsSlice3 (0.26 sec)
-
test/slice3.go
Emmanuel Odeke <******@****.***> 1460323946 -0700
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 2.9K bytes - Viewed (0) -
test/escape_slice.go
var s []*int i := 0 // ERROR "moved to heap: i" s = append(s, &i) return s[0] } func slice2() []*int { var s []*int i := 0 // ERROR "moved to heap: i" s = append(s, &i) return s } func slice3() *int { var s []*int i := 0 // ERROR "moved to heap: i" s = append(s, &i) for _, p := range s { return p } return nil } func slice4(s []*int) { // ERROR "s does not escape"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:50:24 UTC 2023 - 3.9K bytes - Viewed (0) -
src/go/types/exprstring.go
case *ast.SliceExpr: WriteExpr(buf, x.X) buf.WriteByte('[') if x.Low != nil { WriteExpr(buf, x.Low) } buf.WriteByte(':') if x.High != nil { WriteExpr(buf, x.High) } if x.Slice3 { buf.WriteByte(':') if x.Max != nil { WriteExpr(buf, x.Max) } } buf.WriteByte(']') case *ast.TypeAssertExpr: WriteExpr(buf, x.X) buf.WriteString(".(") WriteExpr(buf, x.Type)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 19:31:44 UTC 2024 - 4.8K bytes - Viewed (0)