Documentation ¶
Index ¶
- Constants
- Variables
- func NewConvert() *convert
- func NewDate() *date
- func NewDocument(documentAbsDir string, markdownAbsDir string) *document
- func NewEmail() *email
- func NewEncrypt() *encrypt
- func NewFile() *file
- func NewMisc() *misc
- func NewRequest() *request
- func NewVersionCompare(prefix string) *versionCompare
- func NewZipx() *zipx
- type CompressFileInfo
- type Paginator
- func (p *Paginator) HasNext() bool
- func (p *Paginator) HasPages() bool
- func (p *Paginator) HasPrev() bool
- func (p *Paginator) IsActive(page int) bool
- func (p *Paginator) Nums() int64
- func (p *Paginator) Offset() int
- func (p *Paginator) Page() int
- func (p *Paginator) PageLink(page int) string
- func (p *Paginator) PageLinkFirst() (link string)
- func (p *Paginator) PageLinkLast() (link string)
- func (p *Paginator) PageLinkNext() (link string)
- func (p *Paginator) PageLinkPrev() (link string)
- func (p *Paginator) PageNums() int
- func (p *Paginator) Pages() []int
- func (p *Paginator) PrePageNumLink(perPageNum int) string
- func (p *Paginator) SetNums(nums interface{})
- func (p *Paginator) SetPerPageNums(perPageNums int)
- func (p *Paginator) SetPrePageNumsSelect(selectNums []int)
Constants ¶
View Source
const ( Document_Default_FileName = "README" Document_Page_Suffix = ".md" )
View Source
const ( Document_Type_Page = 1 Document_Type_Dir = 2 )
View Source
const (
BASE_64_TABLE = "1234567890poiuytreqwasdfghjklmnbvcxzQWERTYUIOPLKJHGFDSAZXCVBNM-_"
)
Variables ¶
View Source
var Convert = NewConvert()
View Source
var Date = NewDate()
View Source
var Document = NewDocument("./data", "./data/markdowns")
View Source
var Email = NewEmail()
View Source
var Encrypt = NewEncrypt()
View Source
var File = NewFile()
View Source
var Misc = NewMisc()
View Source
var Request = NewRequest()
View Source
var (
VersionCompare = NewVersionCompare(defaultPrefix)
)
View Source
var Zipx = NewZipx()
Functions ¶
func NewConvert ¶
func NewConvert() *convert
func NewDocument ¶
func NewEncrypt ¶
func NewEncrypt() *encrypt
func NewRequest ¶
func NewRequest() *request
func NewVersionCompare ¶ added in v0.1.2
func NewVersionCompare(prefix string) *versionCompare
new versionCompare
Types ¶
type CompressFileInfo ¶ added in v0.1.3
type Paginator ¶
type Paginator struct { Request *http.Request PerPageNums int PerPageNumsSelect []int MaxPages int // contains filtered or unexported fields }
func (*Paginator) PageLinkFirst ¶
func (*Paginator) PageLinkLast ¶
func (*Paginator) PageLinkNext ¶
func (*Paginator) PageLinkPrev ¶
func (*Paginator) PrePageNumLink ¶ added in v0.1.3
func (*Paginator) SetPerPageNums ¶ added in v0.1.3
func (*Paginator) SetPrePageNumsSelect ¶ added in v0.1.3
Click to show internal directories.
Click to hide internal directories.