1
0
Fork 0
forked from forgejo/forgejo

Paging function for users and repositories

This commit is contained in:
Unknown 2014-07-07 04:15:08 -04:00
parent 7ffdabb28f
commit 63cc14062a
9 changed files with 71 additions and 7 deletions

View file

@ -458,6 +458,16 @@ func (f StrTo) Int64() (int64, error) {
return int64(v), err
}
func (f StrTo) MustInt() int {
v, _ := f.Int()
return v
}
func (f StrTo) MustInt64() int64 {
v, _ := f.Int64()
return v
}
func (f StrTo) String() string {
if f.Exist() {
return string(f)