diff -r 1af366d10d32 -r 9b664fde0ec3 structs.go --- a/structs.go Mon Jan 02 13:18:48 2012 -0700 +++ b/structs.go Mon Jan 02 21:40:42 2012 -0700 @@ -187,6 +187,8 @@ return result } +// Set implements flag.Value. It returns true if it successfully +// parses the string. func (jid *JID) Set(val string) bool { r := regexp.MustCompile("^(([^@/]+)@)?([^@/]+)(/([^@/]+))?$") parts := r.FindStringSubmatch(val)