Skip to content
  • This project
    • Loading...
  • Sign in

张磊 / FileStorageBeego

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • FileStorageBeego
  • utils
  • caller.go
  • 傅小黑's avatar
    add comments for testing, utils and validation packages · ce2984f0
    傅小黑 committed 2014-02-07 16:07:31 +0800
    ce2984f0
caller.go 176 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11
package utils

import (
	"reflect"
	"runtime"
)

// get function name
func GetFuncName(i interface{}) string {
	return runtime.FuncForPC(reflect.ValueOf(i).Pointer()).Name()
}