xos

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(name string, arg ...string) *exec.Cmd

替换exec.CommandContext

func CommandContext

func CommandContext(ctx context.Context, name string, arg ...string) *exec.Cmd

替换exec.CommandContext

func Copy

func Copy(dst io.Writer, src io.Reader) (written int64, err error)

func Create

func Create(name string) (*os.File, error)

func Int2Int32

func Int2Int32(p int) (int32, error)

修复漏洞

func Join

func Join(elem ...string) string

替换filepath.Join

func ListenAndServe

func ListenAndServe(address string, handler http.Handler) error

func Mkdir

func Mkdir(name string, perm os.FileMode) error

func MkdirAll

func MkdirAll(path string, perm os.FileMode) error

func Open

func Open(name string) (*os.File, error)

func OpenFile

func OpenFile(name string, flag int, perm os.FileMode) (*os.File, error)

func ReadFile

func ReadFile(name string) ([]byte, error)

func SocketCallMethod

func SocketCallMethod(ep any, methodName string, services map[string]reflect.Value, requestCls, responseCls string, request, empty any) (results []reflect.Value, err error)

func TLSConfig

func TLSConfig() *tls.Config

func TLSEMail

func TLSEMail(serverName string) *tls.Config

func WriteFile

func WriteFile(name string, data []byte, perm os.FileMode) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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