helpers

package
v0.0.0-...-99e368e Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareSlices

func CompareSlices(a []string, b []string) bool

CompareSlices compares if two slices are equal

func ExpandCommand

func ExpandCommand(s string) string

func GetPaths

func GetPaths(i Include) ([]string, error)

func GetSwayDefaultConfig

func GetSwayDefaultConfig() (string, error)

func HandleFilterArgs

func HandleFilterArgs(s string) []string

HandleFilterArgs sorts and splits strings like Mod4+Shift

func SplitBySpace

func SplitBySpace(s string) []string

SplitBySpace splits by space and remove empty parts

func TabsToSpaces

func TabsToSpaces(s string) string

TabsToSpaces replaces all tabs with spaces

func TrimSpace

func TrimSpace(s string) string

TrimSpace removes spaces, before and after. And removes newlines

Types

type Include

type Include struct {
	ParentPath string
	Path       string
}

Jump to

Keyboard shortcuts

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