Gostrconvstrconv.ParseBool

Converts a string to a bool.

문법

strconv.ParseBool(str string) (bool, error)