Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func growslice(et *_type, old slice, cap int) slice {
- ...
- if et.size == 0 {
- if cap < old.cap {
- panic(errorString("growslice: cap out of range"))
- }
- return slice{unsafe.Pointer(&zerobase), old.len, cap}
- }
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement