开发者交流平台
开发者交流平台

通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。

bj
登录
  • 友情链接
站内
reflection

reflection

go

如何在Go中获取实现了接口的包中所有定义的类型?

英文: How can I get all of the types defined in a package in Go that implement an interface? 问题 如果我有这样...
huangapple 2013年5月2日151评论go reflection
go

如何在Go中将动态创建的结构体作为非指针对象传递

英文: How to pass a dynamically created struct as non-pointer object in Go 问题 我试图动态地将参数传递给URL路由处理函数。我认...
huangapple 2013年3月29日152评论go pointers
go

如何在Go中嵌入默认实现并引用嵌入类型

英文: How to embed default implementations in go & refer to the embedding type 问题 我目前正在玩一些Go代码,并遇到...
huangapple 2013年3月17日174评论go reflection
go

是否可能接收所有实现特定接口的结构体?

英文: Is it possible to receive all structs that implement a certain interface? 问题 我查看了reflect包的文档,但没有...
huangapple 2013年3月10日149评论go reflection
go

在Go语言中获取接口的反射类型的更好方法

英文: Better way to get the reflect.Type of an interface in Go 问题 有没有比在Go中使用reflect.TypeOf((*someInter...
huangapple 2013年1月5日153评论go reflection
go

reflect.Value.MapIndex()返回的Value与reflect.ValueOf()返回的Value不同。

英文: reflect.Value.MapIndex() returns a Value different from reflect.ValueOf() 问题 根据反射文档,reflect.Valu...
huangapple 2013年1月4日153评论go reflection
go

无论接收器类型如何,动态调用interface{}上的方法

英文: Dynamically call method on interface{} regardless of receiver type 问题 我正在使用Go语言编写一个模板系统,这意味着它需要大...
huangapple 2013年1月2日145评论go reflection
go

如何使用反射通过名称获取包常量的值?

英文: How to get a package const value by name using reflect? 问题 这是一个包含一些常量的包。 package object type Lan...
huangapple 2012年12月31日150评论go reflection
go

遍历存储切片的interface{}类型的范围

英文: range over interface{} which stores a slice 问题 给定一个情景,你有一个接受t interface{}的函数。如果确定t是一个切片,我该如何遍历这个...
huangapple 2012年12月25日150评论go slice
go

通过反射在Go中快速检测空值的方法

英文: Quick way to detect empty values via reflection in Go 问题 我在一个interface{}中存储了一个int/string/bool/等等...
huangapple 2012年12月16日154评论go reflection
48

文章导航

1 … 42 43 44 45 46 47 48
name
开发者交流平台
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
文章117266 留言 4 访客17065403

热门标签

json typescript html c++ javascript spring-boot c# spring go flutter node.js java sql arrays reactjs python pandas r css android

悟已往之不谏,知来者之可追!

今日
00%
已00小时
本周
00%
已过00天
本月
00%
已过00天
今年
00%
已是00月

Copyright ©  开发者交流平台 版权所有.

闽 ICP 备 2022019110 号 - 1
  • 开发者交流平台

    本页二维码