// Extract the version number from the URL.
Extract the version number from the URL.
// Extract the version number from the URL .
func version() string {
	fields := strings.Split(*url, "/")
	for _, f := range fields {
		if match, _ := regexp.MatchString(`[0-9]\.[0-9]\.[0-9]`, f); match {
			return f
		}
	}
	logger.Fatal("unknown version")
	return "Unknown"
}
func version ( ) string { fields := strings . Split ( * url , " " ) for _ , f := range fields { if match , _ := regexp . MatchString ( `[0-9]\.[0-9]\.[0-9]` , f ) ; match { return f } } logger . Fatal ( " " ) return " " }
Extract the version number from the URL.
Extract the version number from the URL .
// From http://www.unicode.org/standard/versions/#Version_Numbering: // for the later Unicode versions, data files are located in // versioned directories.