Documentation
¶
Index ¶
- Constants
- Variables
- func AddBook(bookpath string) bool
- func DeleteBook(bookid int) bool
- func DeleteLoginSession(loginSession string)
- func DeleteLoginUserId(userId string)
- func EmptyIamge(width, height int) image.Image
- func FileExists(path string) (bool, error)
- func GetBooksPath() (string, bool)
- func GetSqliteDbPath() (string, bool)
- func GetUploadPath() (string, bool)
- func GetUserIdByLoginSession(loginSession string) (string, time.Time)
- func Home() (string, error)
- func JpegImage2Bytes(img image.Image) []byte
- func QueryParamsFilter(c *revel.Controller, fc []revel.Filter)
- func ResizeImage(width, height uint, img image.Image) image.Image
- func SetLoginUser(loginSession string, userId string)
- func Sha3_256(in string) string
- func ValueOrDefault(value, def string) string
- type Circle
- type Debug
- type FILE
- type IMGJPG
Constants ¶
View Source
const ( ClassNums = 8 ClassNumsStr = "8" UserListNums = 10 UserListNumsStr = "10" )
Variables ¶
View Source
var DEBUG = Debug("")
Functions ¶
func DeleteBook ¶ added in v0.0.2
func DeleteLoginSession ¶ added in v0.0.2
func DeleteLoginSession(loginSession string)
func DeleteLoginUserId ¶ added in v0.0.2
func DeleteLoginUserId(userId string)
func EmptyIamge ¶
func FileExists ¶
func GetBooksPath ¶
func GetSqliteDbPath ¶
func GetUploadPath ¶ added in v0.0.2
func GetUserIdByLoginSession ¶ added in v0.0.2
func Home ¶ added in v0.0.2
Home returns the home directory for the executing user.
This uses an OS-specific method for discovering the home directory. An error is returned if a home directory cannot be detected.
func JpegImage2Bytes ¶
func QueryParamsFilter ¶ added in v0.0.2
func QueryParamsFilter(c *revel.Controller, fc []revel.Filter)
query info to request.form,form exist first
func SetLoginUser ¶ added in v0.0.2
func ValueOrDefault ¶ added in v0.0.2
Return value if nonempty, def otherwise.
Types ¶
Click to show internal directories.
Click to hide internal directories.