mirror of
https://github.com/golang/go
synced 2024-11-25 08:07:57 -07:00
parent
3c5dbb036b
commit
bcb46c8560
@ -1441,7 +1441,7 @@ then make the receiver for the method a value of that type.
|
|||||||
<pre>
|
<pre>
|
||||||
type ByteSlice []byte
|
type ByteSlice []byte
|
||||||
|
|
||||||
func (slice ByteSlice) Append(data []byte) []slice {
|
func (slice ByteSlice) Append(data []byte) []byte {
|
||||||
// Body exactly the same as above
|
// Body exactly the same as above
|
||||||
}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
|
Loading…
Reference in New Issue
Block a user