helper

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call added in v1.0.8

func Call(c *AlibabaCloud) (_result []byte, _err error)

func GetCurrentAbPath added in v1.0.1

func GetCurrentAbPath() string

GetCurrentAbPath 最终方案-全兼容

func GetCurrentAbPathByCaller added in v1.0.1

func GetCurrentAbPathByCaller() string

GetCurrentAbPathByCaller 获取当前执行文件绝对路径(go run)

func GetCurrentAbPathByExecutable added in v1.0.1

func GetCurrentAbPathByExecutable() string

GetCurrentAbPathByExecutable 获取当前执行文件绝对路径

func SendHttpRequest

func SendHttpRequest(url string, method string, body io.Reader, headers map[string]string) ([]byte, error)

SendHttpRequest 发送http请求

func Ternary

func Ternary(condition bool, trueVal, falseVal interface{}) interface{}

Ternary 三目运算符

Types

type AlibabaCloud added in v1.0.8

type AlibabaCloud struct {
	AccessKeyId     string
	AccessKeySecret string
	Endpoint        string
	ServiceName     string
	FunctionName    string
	Body            []byte
}

func GetAlibabaCloudByEnv added in v1.0.8

func GetAlibabaCloudByEnv() *AlibabaCloud

Jump to

Keyboard shortcuts

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