MCPcopy Create free account
hub / github.com/GetStream/stream-go2 / parseBool

Function parseBool

utils.go:77–80  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

75}
76
77func parseBool(value string) bool {
78 v := strings.ToLower(value)
79 return v != "" && v != "false" && v != "f" && v != "0"
80}
81
82func decode(resp []byte, err error) (*BaseResponse, error) {
83 if err != nil {

Callers 1

parseNextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected