func readUint16(r io.Reader) (uint16, error) {
    var buf [2]byte
    if _, err := io.ReadFull(r, buf[:]); err != nil {
        return 0, err
    }
    return (uint16(buf[0]) << 8) | uint16(buf[1]), nil
}
// Read uint16 from io.Reader

Read uint16 from io.Reader
// Read uint16 from io . Reader
func readUint16(r io.Reader) (uint16, error) {
    var buf [2]byte
    if _, err := io.ReadFull(r, buf[:]); err != nil {
        return 0, err
    }
    return (uint16(buf[0]) << 8) | uint16(buf[1]), nil
}
func readUint16 ( r io . Reader ) ( uint16 , error ) { var buf [ 2 ] byte if _ , err := io . ReadFull ( r , buf [ : ] ) ; err != nil { return 0 , err } return ( uint16 ( buf [ 0 ] ) << 8 ) | uint16 ( buf [ 1 ] ) , nil }
Read uint16 from io.Reader
Read uint16 from io . Reader