func writeUint16(w io.Writer, val uint16) error {
    buf := [2]byte{byte(val >> 8), byte(val & 0x00ff)}
    _, err := w.Write(buf[:])
    return err
}
// Write uint16 to io.Write

Write uint16 to io.Write
// Write uint16 to io . Write
func writeUint16(w io.Writer, val uint16) error {
    buf := [2]byte{byte(val >> 8), byte(val & 0x00ff)}
    _, err := w.Write(buf[:])
    return err
}
func writeUint16 ( w io . Writer , val uint16 ) error { buf := [ 2 ] byte { byte ( val >> 8 ) , byte ( val & 0x00ff ) } _ , err := w . Write ( buf [ : ] ) return err }
Write uint16 to io.Write
Write uint16 to io . Write