Documentation ¶
Index ¶
- func FromBytes(i interface{}, data []byte) error
- func GetFileDir(path string) string
- func GetFileExtension(path string) string
- func GetFileName(path string) string
- func GetFileNameWithoutExtension(path string) string
- func GetOrSetHomePath() (string, error)
- func HandleError(err error)
- func IsContain(list []string, key string) bool
- func IsRunning() (bool, error)
- func RemoveElement(slice []string, key string) []string
- func ToBytes(i interface{}) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileDir ¶
func GetFileExtension ¶
func GetFileName ¶
func GetOrSetHomePath ¶
GetOrSetHomePath returns the existing value for env 'OSSICONES_SRC_HOME' if present. Otherwise, it sets and returns the given value.
func HandleError ¶
func HandleError(err error)
func IsRunning ¶
IsRunning checks if the same process is already running. It returns error, if failed to get list of processes because of the unsupported OS.
func RemoveElement ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.