package
0.0.0-20210718062109-496be73d0ac7
Repository: https://github.com/piyuo/libsrv.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Code generated by proto watcher.
No description provided by the author

# Functions

Bool return bool response return Bool(true) .
Error return error response with code return Error("INVALID_EMAIL") .
GetErrorCode return error code if object is PbError otherwise return empty code := GetErrorCode(response) // "INVALID_EMAIL" .
Int return int response return Int(101) .
IsBlockLong return true if object is BlockLong is := IsBlockLong(response) .
IsBlockShort return true if object is BlockShort is := IsBlockShort(response) .
IsBool return true if object is PbBool and value is entered is := IsBool(response,42) .
IsError return true if object is PbError and code is entered is := IsError(response,"INVALID_EMAIL") .
IsInt return true if object is PbInt and value is entered is := IsInt(response,42) .
IsOK return true if object is PbOK is := IsOK(response) .
IsString return true if object is PbString and code is entered is := IsString(response,"hi") .
String return string response return Text("hi") .

# Constants

No description provided by the author
No description provided by the author

# Variables

BlockLong return error response with BLOCK_Long return BlockLong .
BlockShort return error response with BLOCK_SHORT return BlockShort .
ok instace, it use frequently .

# Structs

Dispatch manage action,handler,response.

# Interfaces

Action interface.
IMap map id and object.
Response interface.