lib

package
v0.0.0-...-1b0f67f Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(path string) (bool, error)

func GetCmdOutput

func GetCmdOutput(command string, args ...string) []string

GetCmdOutput -

func GetOrigin

func GetOrigin() (*dto.Origin, error)

func GetParams

func GetParams(regEx, url string) (paramsMap map[string]string)

*

  • Parses url with the given regular expression and returns the
  • group values defined in the expression. *

func Round

func Round(a float64) int

func SafeShell

func SafeShell(command string, callback Callback)

SafeShell - shell executor that doesn't crash on errors

func SafeShellEx

func SafeShellEx(command string, callback Callback, arg ...string)

SafeShellEx - safe shell executor with arguments

func Shell

func Shell(command string, callback Callback)

Shell - shell executor

func ShellEx

func ShellEx(command string, callback Callback, arg ...string)

ShellEx -

Types

type Callback

type Callback func(line string)

Callback - shell output handler

Jump to

Keyboard shortcuts

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