pgtype
pgtype copied to clipboard
Implement Stringer interface
Why structs don't implement Stringer interface ? It would be nice to have .String() string method for easy use in fmt.Println and in logger.
I'm not opposed to it. It just hasn't been done. If it was to be done it probably would make sense to implement it via EncodeText so that the PostgreSQL text representation of the value is used. It also may make sense to abbreviate long values like bytea.