MCPcopy Create free account
hub / github.com/imroc/req / IsStringEmpty

Function IsStringEmpty

internal/util/util.go:78–80  ·  view source on GitHub ↗

IsStringEmpty method tells whether given string is empty or not

(str string)

Source from the content-addressed store, hash-verified

76
77// IsStringEmpty method tells whether given string is empty or not
78func IsStringEmpty(str string) bool {
79 return len(strings.TrimSpace(str)) == 0
80}
81
82// See 2 (end of page 4) https://www.ietf.org/rfc/rfc2617.txt
83// "To receive authorization, the client sends the userid and password,

Callers 4

createMultipartHeaderFunction · 0.92
parseRequestURLFunction · 0.92
SetSchemeMethod · 0.92
TestIsStringEmptyFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsStringEmptyFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…