Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
func Apply[T1 interface{}, T2 interface{}](f func(T1) T2, t1s []T1) []T2
Apply applies the given function to all the items in the list and returns a new list.
func Contains ¶
func Contains[T comparable](t T, ts []T) bool
Contains returns true iff the given item is present in the list.
func Filter ¶
func Filter[T interface{}](f func(T) bool, ts []T) []T
Filter uses the given condition to filter the items in the list and returns a new list.
func FindIndex ¶
FindIndex returns the index of the first item in the list that satifies the condition. Returns -1 if no item satifies the condition.
func GetPluginDir ¶
func GetStorageDir ¶
func GetStorageDir() string
GetStorageDir returns the directory where we store all the plugins.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.