Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertLongTweetToImg(txt string, f *truetype.Font, fontSize float64) (image.Image, error)
- func DecryptRandomData(encryptedData string, passphrase []byte) (*big.Int, error)
- func GenerateRandomData(passphrase []byte) (string, []byte, error)
- func IsOverTwitterLimit(text string) bool
- func LogInst() *zerolog.Logger
- func ParseTemplates(path string) *template.Template
- func RandomBytesInHex(count int) string
- func ReadRequest(request *http.Request, obj any) error
- func SetLogLevel(ll string)
- func SplitIntoChunks(text string, chunkSize int) []string
- func TruncateString(raw, append string) string
- func Verify(address, message, signedMessage string) (string, error)
Constants ¶
View Source
const ( MaxReqContentLen = 1024 * 1024 * 5 MaxTwitterLen = 280 )
Variables ¶
Functions ¶
func ConvertLongTweetToImg ¶
func DecryptRandomData ¶
func IsOverTwitterLimit ¶
func ParseTemplates ¶
func RandomBytesInHex ¶
func SetLogLevel ¶
func SetLogLevel(ll string)
func SplitIntoChunks ¶
func TruncateString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.