The connection string's parser's parse() method does both parsing and some validation. Specifically these lines here: https://github.com/mongodb/mongo-go-driver/blob/master/x/mongo/driver/connstring/connstring.go#L254-L266
I'm going to submit a PR to separate parsing and validation.