mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-18 21:26:20 +00:00
service: remove stop method and use contexts (#7292)
This commit is contained in:
@@ -55,6 +55,10 @@ func SplitAndTrim(s, sep, cutset string) []string {
|
||||
return spl
|
||||
}
|
||||
|
||||
// TrimSpace removes all leading and trailing whitespace from the
|
||||
// string.
|
||||
func TrimSpace(s string) string { return strings.TrimSpace(s) }
|
||||
|
||||
// Returns true if s is a non-empty printable non-tab ascii character.
|
||||
func IsASCIIText(s string) bool {
|
||||
if len(s) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user