optimize: logparser v5

This commit is contained in:
Inanc Gumus
2019-08-29 18:27:31 +03:00
parent 661e018258
commit c8e7f3efda
4 changed files with 15 additions and 9 deletions

View File

@ -20,8 +20,8 @@ type Record struct {
record
}
// String returns a string field. Panics when the field doesn't exist.
func (r Record) String(field string) string {
// Str returns a string field. Panics when the field doesn't exist.
func (r Record) Str(field string) string {
return r.mustGet(field, reflect.String).String()
}