-
Austin Clements authored
Currently, Entry has a Val method that looks up an attribute and returns its value. Now that Field has more fields than the attribute and its value, it's useful to return the whole Field and let the caller retrieve the parts it needs. This change adds an AttrField method to Entry that does the same lookup at Val, but returns the whole *Field rather than just the value. Change-Id: Ic629744c14c0e09d7528fa1026b0e1857789948c Reviewed-on: https://go-review.googlesource.com/8503Reviewed-by:
Ian Lance Taylor <iant@golang.org>
947b6a7e
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
testdata | ||
buf.go | ||
class_string.go | ||
const.go | ||
entry.go | ||
line.go | ||
line_test.go | ||
open.go | ||
type.go | ||
type_test.go | ||
typeunit.go | ||
unit.go |