google / starlark-go

Starlark in Go: the Starlark configuration language, implemented in Go
BSD 3-Clause "New" or "Revised" License
2.3k stars 209 forks source link

starlark: add ToInt helper function for unpacking values to Go ints #329

Closed alandonovan closed 3 years ago

alandonovan commented 3 years ago

Also, use it in Unpack* functions. This is a minor breaking change: any call that assumed values unpacked to 'int' were always in the int32 range will need to be modified to handle possible int64 values.

alandonovan commented 3 years ago

Thanks, Jay.