Something went wrong. Try again.
Monorepo for Tangled
Something went wrong. Try again.
12345678910111213141516171819202122232425package pages
import "strings"
type Source string
const ( SourcePatch Source = "patch" SourceBranch Source = "branch" SourceFork Source = "fork")
func ParseSource(s string) (Source, bool) { switch strings.ToLower(s) { case string(SourcePatch): return SourcePatch, true case string(SourceFork): return SourceFork, true case string(SourceBranch): return SourceBranch, true default: return "", false }}