14 lines
164 B
Go
14 lines
164 B
Go
|
package service_definition
|
||
|
|
||
|
import (
|
||
|
"strings"
|
||
|
)
|
||
|
|
||
|
func GetPathType(path string) string {
|
||
|
if strings.HasPrefix(path, "git+") {
|
||
|
return "git"
|
||
|
}
|
||
|
|
||
|
return "file"
|
||
|
}
|