github.com/sohaha/zlsgo@v1.7.13-0.20240501141223-10dd1a906f76/zreflect/doc.go (about)

     1  /*
     2  Package zreflect provides reflection tools
     3  
     4  	package main
     5  
     6  	import (
     7  		"github.com/sohaha/zlsgo/zreflect"
     8  	)
     9  
    10  	type Demo struct {
    11  		Name string
    12  	}
    13  
    14  	func main() {
    15  		typ := zreflect.TypeOf(Demo{})
    16  
    17  		println(typ.NumMethod())
    18  	}
    19  */
    20  package zreflect