fortune

package
v0.0.0-...-24519dd Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Draw

func Draw(theme string, fortuneResult *FortuneResult) ([]byte, error)

@function Draw 绘制运势图 @param theme 背景主体 @param title 签名 @param text 签文 @return 错误信息

func RandTheme

func RandTheme() string

Types

type FortuneResult

type FortuneResult struct {
	Title   string `json:"title"`
	Content string `json:"content"`
}

func Randtext

func Randtext() (*FortuneResult, error)

@function randtext 随机选取签文 @param file 文件路径 @param seed 随机数种子 @return 运势结果 & 错误信息

Jump to

Keyboard shortcuts

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