mirror of
https://github.com/aclindsa/ofxgo.git
synced 2025-07-01 11:48:38 -04:00
Don't require UIDs to be 36 characters
The spec strongly recommends this, but doesn't strictly require it
This commit is contained in:
4
types.go
4
types.go
@ -216,7 +216,9 @@ func (ob *Boolean) String() string {
|
||||
|
||||
type UID string
|
||||
|
||||
func (ou UID) Valid() (bool, error) {
|
||||
// The OFX specification recommends that UIDs follow the standard UUID
|
||||
// 36-character format
|
||||
func (ou UID) RecommendedFormat() (bool, error) {
|
||||
if len(ou) != 36 {
|
||||
return false, errors.New("UID not 36 characters long")
|
||||
}
|
||||
|
Reference in New Issue
Block a user