Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
1234567891011121314 |
- package common
-
- import (
- "strconv"
- )
-
- // MustAtoi converts the input string to an integer and panics on failure.
- func MustAtoi(input string) int {
- res, err := strconv.Atoi(input)
- if err != nil {
- panic(err)
- }
- return res
- }
|