Documentation ¶
Index ¶
- func CheckIfSliceContains[T comparable](slice []T, ele T) bool
- func InsertToSliceByIndex[T comparable](slice []T, idx int, val T) []T
- func MakeOSReleaseLinux() map[string]string
- func PopFromSliceByIndex[T comparable](slice []T, idx int) (T, []T)
- func RandomHex(n int) (string, error)
- func RenderASCIIGraph(render_target string)
- func SliceContains(s []string, str string) bool
- func SplitStrict(content string) map[string]string
- type ShellConnection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfSliceContains ¶
func CheckIfSliceContains[T comparable](slice []T, ele T) bool
func InsertToSliceByIndex ¶
func InsertToSliceByIndex[T comparable](slice []T, idx int, val T) []T
func MakeOSReleaseLinux ¶
func PopFromSliceByIndex ¶
func PopFromSliceByIndex[T comparable](slice []T, idx int) (T, []T)
func RenderASCIIGraph ¶
func RenderASCIIGraph(render_target string)
func SliceContains ¶
func SplitStrict ¶
Types ¶
type ShellConnection ¶
func ShellConnect ¶
func ShellConnect(addr, user, password string) (*ShellConnection, error)
func (*ShellConnection) SendCommands ¶
func (conn *ShellConnection) SendCommands(cmds string) ([]byte, error)
func (*ShellConnection) SendCommandsBackground ¶
func (conn *ShellConnection) SendCommandsBackground(cmds string) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.