utils

package
v0.0.0-...-6cc1917 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package utils 工具函数

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func L11nJSON

func L11nJSON(l11nJSONPath, toBeTranslatedJSONPath, key string) (map[string]map[string]interface{}, error)

L11nJSON 读取json 并使用l11nJSONPath 来对toBeTranslatedJSONPath l11n

返回值的第一个键是key, 嵌套的map[string]interface为json Objects

func ReadJSONFile

func ReadJSONFile(path string) ([]byte, error)

ReadJSONFile 从data 中读取json

func Txt2Img

func Txt2Img(ctx *zero.Ctx, txt string) message.MessageSegment

Txt2Img 文字转图片

Types

This section is empty.

Jump to

Keyboard shortcuts

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