GetString returns the data value for "key" as a string.
(key string)
| 951 | |
| 952 | // GetString returns the data value for "key" as a string. |
| 953 | func (m *Record) GetString(key string) string { |
| 954 | return cast.ToString(m.Get(key)) |
| 955 | } |
| 956 | |
| 957 | // GetInt returns the data value for "key" as an int. |
| 958 | func (m *Record) GetInt(key string) int { |