How to convert int (int64) into uint16 in golang?

Viewed 40135

I can 100% guaranty the value of input int variable is always unsign(positive) and less than int16.

How can I convert this int type variable to uint16?

2 Answers
Related