github.com/vcilabs/webrpc@v0.5.2-0.20201116131534-162e27b1b33b/schema/ridl/debug.go (about) 1 package ridl 2 3 import ( 4 "reflect" 5 "runtime" 6 ) 7 8 func stateFnName(fn interface{}) string { 9 return runtime.FuncForPC(reflect.ValueOf(fn).Pointer()).Name() 10 }