Int returns ws as an integer. If ws is not an integer, 0 is returned.
()
| 201 | // Int returns ws as an integer. If ws is not an |
| 202 | // integer, 0 is returned. |
| 203 | func (ws WeakString) Int() int { |
| 204 | num, _ := strconv.Atoi(string(ws)) |
| 205 | return num |
| 206 | } |
| 207 | |
| 208 | // Float64 returns ws as a float64. If ws is not a |
| 209 | // float value, the zero value is returned. |
no outgoing calls