mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-01 23:10:01 +00:00
98263a7de6
* start fixing up tests * fix up tests + automate with drone * fiddle with linting * messing about with drone.yml * some more fiddling * hmmm * add cache * add vendor directory * verbose * ci updates * update some little things * update sig
20 lines
480 B
Go
20 lines
480 B
Go
package internal
|
|
|
|
import "strconv"
|
|
|
|
func Atoi(b []byte) (int, error) {
|
|
return strconv.Atoi(BytesToString(b))
|
|
}
|
|
|
|
func ParseInt(b []byte, base int, bitSize int) (int64, error) {
|
|
return strconv.ParseInt(BytesToString(b), base, bitSize)
|
|
}
|
|
|
|
func ParseUint(b []byte, base int, bitSize int) (uint64, error) {
|
|
return strconv.ParseUint(BytesToString(b), base, bitSize)
|
|
}
|
|
|
|
func ParseFloat(b []byte, bitSize int) (float64, error) {
|
|
return strconv.ParseFloat(BytesToString(b), bitSize)
|
|
}
|