service

package
v0.0.0-...-97766fc Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64

func Base64(opt int, content string) string

Base64 根据 opt 运算符确定对 content 进行加解密

func Decode

func Decode(content string) (resp structure.OutputContent)

Decode format content to decode string

func Encode

func Encode(content string) (resp structure.OutputContent)

Encode format content to encode string

func Handler

func Handler(ctx context.Context, reqOrigin events.APIGatewayRequest) (resp events.APIGatewayResponse)

Handler 加工入参、出参,并调用核心处理函数

func Html

func Html(opt int, content string) string

Html 根据 opt 运算符确定对 content 进行编/解码

func Unicode

func Unicode(opt int, content string) string

Url 根据 opt 运算符确定对 content 进行编码/解码

func Url

func Url(opt int, content string) string

Url 根据 opt 运算符确定对 content 进行编码/解码

func Utf8ToGbk

func Utf8ToGbk(opt int, content string) string

Utf8ToGbk 根据 opt 运算符确定是中文转 UTF8,还是 UTF8 转中文

Types

This section is empty.

Jump to

Keyboard shortcuts

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