Documentation
¶
Index ¶
- Constants
- func Bool(b bool) *bool
- func CloseConnection(c *websocket.Conn)
- func GenerateRandomString(length int) string
- func Int(a int) *int
- func IsNameValid(username string) bool
- func IsURLAllowed(urlStr string) (bool, error)
- func URLHash(urlStr string) (string, error)
- func WrapStringArray(strings ...string) (res []interface{})
- type Bob
- func (e *Bob) All(str ...interface{})
- func (e *Bob) Alll(str ...interface{})
- func (e *Bob) Bytes() []byte
- func (*Bob) If(cond bool, str string) string
- func (*Bob) IfElse(cond bool, str, els string) string
- func (e *Bob) NewLine(repeat ...int)
- func (e *Bob) Writef(msg string, args ...interface{})
- func (e *Bob) Writefl(msg string, args ...interface{})
- func (e *Bob) Writel(msg string)
- type Boundaries
- type BoundaryInt
- type GameState
Constants ¶
View Source
const ( StateAny = StateLobby | StateSubmitGIF | StateCastVotes | StateShowVotes StateInGame = StateSubmitGIF | StateCastVotes | StateShowVotes )
View Source
const CharSet = "ABCDEFGHJKLMNPQRSTUVWXYZabcdefghjkmnpqrstuvwxyz123456789"
Variables ¶
This section is empty.
Functions ¶
func CloseConnection ¶
func GenerateRandomString ¶
func IsNameValid ¶
func IsURLAllowed ¶
func WrapStringArray ¶
func WrapStringArray(strings ...string) (res []interface{})
Types ¶
type Boundaries ¶
type Boundaries []*BoundaryInt
func Bounds ¶
func Bounds(boundaries ...*BoundaryInt) Boundaries
func (Boundaries) Applies ¶
func (B Boundaries) Applies(a int) bool
func (Boundaries) String ¶
func (B Boundaries) String() string
type BoundaryInt ¶
func BoundExact ¶
func BoundExact(exact int) *BoundaryInt
func BoundMax ¶
func BoundMax(max int) *BoundaryInt
func BoundMin ¶
func BoundMin(min int) *BoundaryInt
func (*BoundaryInt) Applies ¶
func (i *BoundaryInt) Applies(a int) bool
func (BoundaryInt) String ¶
func (i BoundaryInt) String() string
Click to show internal directories.
Click to hide internal directories.