gitee.com/quant1x/gox@v1.21.2/encoding/binary/struc/legacy.go (about) 1 package struc 2 3 import ( 4 "encoding/binary" 5 "io" 6 ) 7 8 // Deprecated. Use PackWithOptions. 9 func PackWithOrder(w io.Writer, data interface{}, order binary.ByteOrder) error { 10 return PackWithOptions(w, data, &Options{Order: order}) 11 } 12 13 // Deprecated. Use UnpackWithOptions. 14 func UnpackWithOrder(r io.Reader, data interface{}, order binary.ByteOrder) error { 15 return UnpackWithOptions(r, data, &Options{Order: order}) 16 }