Documentation ¶
Overview ¶
Package sortpath support sorting of path that may include number.
A series of path can look like:
- Tome1/Chap1/Image1.jpg
- Tome1/Chap2/Image1.jpg
- Tome1/Chap10/Image2.jpg
The module will split the string by path, and compare them by decomposing the string and number part.
The module support 3 mode:
- mode=0 alpha for path and file
- mode=1 alphanumeric for path and alpha for file
- mode=2 alphanumeric for path and file
Example:
files := []string{ 'T1/C1/Img1.jpg', 'T1/C2/Img1.jpg', 'T1/C10/Img1.jpg', } sort.Sort(sortpath.By(files, 1))
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.