util

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checksum

func Checksum(v interface{}) (string, error)

func GenerateSessionId

func GenerateSessionId() string

func IsWSL

func IsWSL() (bool, error)

IsWSL tests if the binary is being run in Windows Subsystem for Linux

func NewAltReadWriteCloserConn added in v0.5.0

func NewAltReadWriteCloserConn(rwc io.ReadWriteCloser, c net.Conn) net.Conn

func NewConnection added in v0.8.0

func NewConnection(ctx context.Context, remoteUrl, remotePublicKey string, tlsConfig *tls.Config) (net.Conn, error)

func NormalizeHttpUrl

func NormalizeHttpUrl(input string) (string, error)

func OpenURL

func OpenURL(url string) error

OpenURL opens the specified URL in the default browser of the user. Source: https://stackoverflow.com/a/39324149/453290

func Pipe added in v0.8.0

func Pipe(from io.ReadWriteCloser, to io.ReadWriteCloser)

func PipeStdInOut added in v0.8.0

func PipeStdInOut(from io.ReadWriteCloser)

func StripScheme

func StripScheme(input string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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