code: func getMethodNames(instance interface{}) []string {
  	var methods []string
  
  	t := reflect.TypeOf(instance)
  	for i := 0; i < t.NumMethod(); i++ {
  		methods = append(methods, t.Method(i).Name)
  	}
  
  	return methods
  }
docs: // getMethodNames returns instance's method names.