Files
supply-intelligence/internal/httpapi/parse.go

13 lines
218 B
Go
Raw Normal View History

package httpapi
import "strconv"
func parseInt64(input string, target *int64) (int64, error) {
value, err := strconv.ParseInt(input, 10, 64)
if err != nil {
return 0, err
}
*target = value
return value, nil
}