# StartsWith bool

StartsWith returns true if the current string starts with the given substring.

# Signature

func (s *Str) StartsWith(substring string) bool

# Examples

str.New("golang").StartsWith("")
// false

str.New("golang").StartsWith("go")
// true

str.New(" go ").StartsWith(" ")
// true

str.New("🔥🔥").StartsWith("🔥")
// true

str.New("✨🔥✨🔥✨").StartsWith("🔥")
// false