util

package
v0.0.0-...-eb64f0e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Content = 0
	Image   = 1
)

Functions

func GetBrief

func GetBrief(content string) string

func NewToken

func NewToken(userId uint32, isAdmin bool) (string, error)

func Save

func Save(userID uint32, content string, diff int) (string, error)

func SaveImg

func SaveImg(userID uint32, image string, diff int) (string, error)

func ValidatePhone

func ValidatePhone(phone string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL