github.com/jgarto/itcv@v0.0.0-20180826224514-4eea09c1aa0d/jsx/util.go (about)

     1  package jsx
     2  
     3  import "strconv"
     4  
     5  func parseBool(s string) bool {
     6  	v, err := strconv.ParseBool(s)
     7  	if err != nil {
     8  		return false
     9  	}
    10  
    11  	return v
    12  }