# Functions
AdjustPosition adjusts the filename with uuid suffix in mysql position for example: mysql-bin|000001.000002 -> mysql-bin.000002.
CompareGTID returns: 1, true if gSet1 is bigger than gSet2 0, true if gSet1 is equal to gSet2 -1, true if gSet1 is less than gSet2 but if can't compare gSet1 and gSet2, will returns 0, false.
CompareLocation returns: 1 if point1 is bigger than point2 0 if point1 is equal to point2 -1 if point1 is less than point2.
ComparePosition returns: 1 if pos1 is bigger than pos2 0 if pos1 is equal to pos2 -1 if pos1 is less than pos2.
ConstructFilename constructs a binlog filename from the basename and seq.
ConstructFilenameWithUUIDSuffix constructs a binlog filename with UUID suffix.
ExtractPos extracts (uuidWithSuffix, uuidSuffix, originalPos) from input pos (originalPos or convertedPos).
ExtractSuffix extracts uuidSuffix from input name.
GetFilenameIndex returns a int64 index value (seq number) of the filename.
InitLocation init a new Location.
IsFreshPosition returns true when location1 is a fresh location without any info.
NewLocation returns a new Location.
ParseFilename parses a string representation binlog filename into a `Filename`.
PositionFromPosStr constructs a mysql.Position from a string representation like `(mysql-bin.000001, 2345)`.
PositionFromStr constructs a mysql.Position from a string representation like `mysql-bin.000001:2345`.
RealMySQLPos parses a relay position and returns a mysql position and whether error occurs if parsed successfully and `UUIDSuffix` exists, sets position Name to `originalPos.NamePrefix + binlogFilenameSep + originalPos.NameSuffix`.
SplitFilenameWithUUIDSuffix analyzes a binlog filename with UUID suffix.
VerifyBinlogPos verify binlog pos string.
VerifyFilename verifies whether is a valid MySQL/MariaDB binlog filename.
# Constants
MinUUIDSuffix is same as relay.MinUUIDSuffix.
# Variables
MinPosition is the min binlog position.