pedroMMM/goss

View on GitHub
system/service.go

Summary

Maintainability
A
0 mins
Test Coverage
package system

import "strings"

type Service interface {
    Service() string
    Exists() (bool, error)
    Enabled() (bool, error)
    Running() (bool, error)
}

func invalidService(s string) bool {
    if strings.ContainsRune(s, '/') {
        return true
    }
    return false
}