feat: bootstrap supply intelligence baseline
This commit is contained in:
12
internal/httpapi/parse.go
Normal file
12
internal/httpapi/parse.go
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user