Convert Uint16 to Uint8

Is there any way to convert Uint16 value to Uint8?

Yes, of course, but you’ll loose information in that process.

Its covered in type conversions of the go tour.

Thanks Nobbz

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.