1. In the main loop to find typeName, it will
continue find type if a type has been already found,
which will make empty string overwite it latter,
so if it is found first time, assuming this is the
type we want, and break out the loop.
2. Add support for zero value for func type.
3. If the type not a builtin type (*ast.Ident),
assuming it is a composite structure, like
*ast.StructType.
Signed-off-by: Peng Gao <peng.gao.dut@gmail.com>
1. Add benchmark performance in README.md
2. Use an Attr as argument for New to initiate a cache, in this
way, more default settings can be supported.
3. Add fast way for delete method, if no onEvicted callback
function set.
4. Use bool to indicate k existence in Get method to avoid
pointer escape (which leads to memory allocation on heap),
reference link below to get detail information.
https://groups.google.com/forum/#!topic/golang-nuts/1WCWAtOsyDU
Signed-off-by: Peng Gao <peng.gao.dut@gmail.com>