added Record.GetInt64(field) helper

This commit is contained in:
Gani Georgiev committed 2026-08-19 21:43:04 +03:00
1 parent 50a7700450
commit bf1f164014
3 files changed
+44

No files matched your search

+5
View File
@@ -959,6 +959,11 @@ func (m *Record) GetInt(key string) int {
return cast.ToInt(m.Get(key))
}
// GetInt64 returns the data value for "key" as an int64.
func (m *Record) GetInt64(key string) int64 {
return cast.ToInt64(m.Get(key))
}
// GetFloat returns the data value for "key" as a float64.
func (m *Record) GetFloat(key string) float64 {
return cast.ToFloat64(m.Get(key))