common

package
v0.1.16-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpReq

func HttpReq(L *lua.LState)

func System

func System(L *lua.LState)

Types

type HttpReqFunc

type HttpReqFunc struct{}

func (*HttpReqFunc) Get

func (h *HttpReqFunc) Get(url string, params string) string

func (*HttpReqFunc) GetJson

func (h *HttpReqFunc) GetJson(url string, params string) map[string]any

func (*HttpReqFunc) Post

func (h *HttpReqFunc) Post(url string, params any) string

func (*HttpReqFunc) PostJson

func (h *HttpReqFunc) PostJson(url string, params any) map[string]any

type SystemFunc

type SystemFunc struct{}

func (*SystemFunc) Exit

func (s *SystemFunc) Exit(code int)

func (*SystemFunc) GetEnv

func (s *SystemFunc) GetEnv(key string) string

func (*SystemFunc) Info

func (s *SystemFunc) Info() system.Info

func (*SystemFunc) SetEnv

func (s *SystemFunc) SetEnv(key, value string)

func (*SystemFunc) Sleep

func (s *SystemFunc) Sleep(ms int)

func (*SystemFunc) UnsetEnv

func (s *SystemFunc) UnsetEnv(key string)

Jump to

Keyboard shortcuts

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