github.com/goravel/framework@v1.13.9/support/debug/dump.go (about) 1 package debug 2 3 import ( 4 "io" 5 6 "github.com/davecgh/go-spew/spew" 7 ) 8 9 // Dump is used to display detailed information about variables 10 // And this is a wrapper around spew.Dump. 11 func Dump(v ...interface{}) { 12 spew.Dump(v...) 13 } 14 15 // FDump is used to display detailed information about variables to the specified io.Writer 16 // And this is a wrapper around spew.Fdump. 17 func FDump(w io.Writer, v ...interface{}) { 18 spew.Fdump(w, v...) 19 } 20 21 // SDump is used to display detailed information about variables as a string, 22 // And this is a wrapper around spew.Sdump. 23 func SDump(v ...interface{}) string { 24 return spew.Sdump(v...) 25 }