[go-nuts] Re: "type MyByte byte", then how to convert []MyByte to []byte so that I can use bytes.Xyz functions for []MyByte?

2018-01-24 Thread digg
On Wednesday, January 24, 2018 at 8:35:25 AM UTC-5, Volker Dobler wrote: > > See https://golang.org/doc/faq#convert_slice_with_same_underlying_type > > On Wednesday, 24 January 2018 13:57:59 UTC+1, di...@veryhaha.com wrote: >> >> except unsafe ways. >> > > Yes: explicit loop. > > Why did you do

[go-nuts] Re: "type MyByte byte", then how to convert []MyByte to []byte so that I can use bytes.Xyz functions for []MyByte?

2018-01-24 Thread Volker Dobler
See https://golang.org/doc/faq#convert_slice_with_same_underlying_type On Wednesday, 24 January 2018 13:57:59 UTC+1, di...@veryhaha.com wrote: > > except unsafe ways. > Yes: explicit loop. Why did you do type MyByte byte in the first place? Extra methods on your byte? V. -- You received