Documentation ¶
Overview ¶
Nging is a toolbox for webmasters Copyright (C) 2018-present Wenhui Shen <swh@admpub.com>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Nging is a toolbox for webmasters Copyright (C) 2018-present Wenhui Shen <swh@admpub.com>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Index ¶
- Variables
- func New(root string, editableMaxSize int64, ctx echo.Context) *fileManager
- func Search(prefix string, nums ...int) []string
- func SearchDir(prefix string, nums ...int) []string
- func SearchFile(prefix string, nums ...int) []string
- type SortByFileType
- type SortByModTime
- type SortByModTimeDesc
- type SortByNameDesc
Constants ¶
This section is empty.
Variables ¶
var ( EncodedSep = com.URLEncode(`/`) EncodedSlash = com.URLEncode(`\`) EncodedSepa = com.URLEncode(echo.FilePathSeparator) )
Functions ¶
Types ¶
type SortByFileType ¶
func (SortByFileType) Len ¶
func (s SortByFileType) Len() int
func (SortByFileType) Less ¶
func (s SortByFileType) Less(i, j int) bool
func (SortByFileType) Swap ¶
func (s SortByFileType) Swap(i, j int)
type SortByModTime ¶
func (SortByModTime) Len ¶
func (s SortByModTime) Len() int
func (SortByModTime) Less ¶
func (s SortByModTime) Less(i, j int) bool
func (SortByModTime) Swap ¶
func (s SortByModTime) Swap(i, j int)
type SortByModTimeDesc ¶
func (SortByModTimeDesc) Len ¶
func (s SortByModTimeDesc) Len() int
func (SortByModTimeDesc) Less ¶
func (s SortByModTimeDesc) Less(i, j int) bool
func (SortByModTimeDesc) Swap ¶
func (s SortByModTimeDesc) Swap(i, j int)
type SortByNameDesc ¶
func (SortByNameDesc) Len ¶
func (s SortByNameDesc) Len() int
func (SortByNameDesc) Less ¶
func (s SortByNameDesc) Less(i, j int) bool
func (SortByNameDesc) Swap ¶
func (s SortByNameDesc) Swap(i, j int)