Package pgio is a low-level toolkit building messages in the PostgreSQL wire protocol.
pgio provides functions for appending integers to a []byte while doing byte order conversion.
Extracted from original implementation in https://github.com/jackc/pgx?target=https://github.com.