golang获取方法名称

import (
  "reflect"
  "runtime"
)

p := reflect.ValueOf(i).Pointer()
n := runtime.FuncForPC(p).Name()