func (this *BinlogCoordinates) FileNumber() (int, int) {
	tokens := strings.Split(this.LogFile, ".")
	numPart := tokens[len(tokens)-1]
	numLen := len(numPart)
	fileNum, err := strconv.Atoi(numPart)
	if err != nil {
		return 0, 0
	}
	return fileNum, numLen
}
// FileNumber returns the numeric value of the file, and the length in characters representing the number in the filename.
// Example: FileNumber() of mysqld.log.000789 is (789, 6)
FileNumber returns the numeric value of the file, and the length in characters representing the number in the filename.
// FileNumber returns the numeric value of the file and the length in characters representing the number in the filename . // Example : FileNumber () of mysqld . log . 000789 is ( 789 6 )
func (this *BinlogCoordinates) FileNumber() (int, int) {
	tokens := strings.Split(this.LogFile, ".")
	numPart := tokens[len(tokens)-1]
	numLen := len(numPart)
	fileNum, err := strconv.Atoi(numPart)
	if err != nil {
		return 0, 0
	}
	return fileNum, numLen
}
func ( this * BinlogCoordinates ) FileNumber ( ) ( int , int ) { tokens := strings . Split ( this . LogFile , " " ) numPart := tokens [ len ( tokens ) - 1 ] numLen := len ( numPart ) fileNum , err := strconv . Atoi ( numPart ) if err != nil { return 0 , 0 } return fileNum , numLen }
FileNumber returns the numeric value of the file, and the length in characters representing the number in the filename.
FileNumber returns the numeric value of the file and the length in characters representing the number in the filename .