utils

package
v0.0.0-...-338380f Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(key string, arr *[]string) bool

Contains return true if key is inside slice

func GetResumeDbusConn

func GetResumeDbusConn() *dbus.Conn

GetResumeDbusConn returns DBUS connection to resume from suspend signal

func GetVars

func GetVars(s string) (result []string)

GetVars returns the variables containing in the stirng s

func ReplaceVar

func ReplaceVar(s, varName, newValue string) string

ReplaceVar returns a copy of the string s with replaced newValue substring, surrounded by the separators defined in config as varSeps, by newValue.

Types

This section is empty.

Jump to

Keyboard shortcuts

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