core

package
v2.24.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2019 License: GPL-3.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package core contains basic utility functions.

Index

Constants

View Source
const (
	Name    = "bettercap"
	Version = "2.24.1"
	Author  = "Simone 'evilsocket' Margaritelli"
	Website = "https://bettercap.org/"
)

Variables

This section is empty.

Functions

func Exec

func Exec(executable string, args []string) (string, error)

func HasBinary

func HasBinary(executable string) bool

func Shell

func Shell(cmd string) (string, error)

func UniqueInts

func UniqueInts(a []int, sorted bool) []int

Types

type Options

type Options struct {
	InterfaceName *string
	Gateway       *string
	Caplet        *string
	AutoStart     *string
	Debug         *bool
	Silent        *bool
	NoColors      *bool
	NoHistory     *bool
	PrintVersion  *bool
	EnvFile       *string
	Commands      *string
	CpuProfile    *string
	MemProfile    *string
}

func ParseOptions

func ParseOptions() (Options, error)

Jump to

Keyboard shortcuts

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