~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to src/pkg/reflect/type.go

  • Committer: Package Import Robot
  • Author(s): Ondřej Surý
  • Date: 2012-05-02 15:44:59 UTC
  • mfrom: (14.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20120502154459-wcmy8ao1325ml619
Tags: 2:1.0.1-1
* Imported Upstream version 1.0.1
* Apply godoc patch to display package list correctly (Closes: #669354)

Show diffs side-by-side

added added

removed removed

Lines of Context:
940
940
}
941
941
 
942
942
// TypeOf returns the reflection Type of the value in the interface{}.
 
943
// TypeOf(nil) returns nil.
943
944
func TypeOf(i interface{}) Type {
944
945
        eface := *(*emptyInterface)(unsafe.Pointer(&i))
945
946
        return toType(eface.typ)