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

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

bj
登录
  • 友情链接
站内
reflection

reflection

go

Go语言可以将具有未知数量参数的函数作为参数传递给另一个函数。

英文: Can golang take a function with unknown number of parameters as an argument to another function ...
huangapple 2015年12月3日151评论go interface
go

Go Differentiate Between Structs with same name in the same package

英文: Go Differentiate Between Structs with same name in the same package 问题 背景: 我正在尝试为了提高效率而缓存一些结构体信息...
huangapple 2015年11月28日165评论go reflection
go

在Golang中将接口设置为nil。

英文: Set an interface to nil in Golang 问题 我正在尝试将接口的内部值设置为nil,类似于以下代码: typ := &TYP{InternalState: ...
huangapple 2015年11月21日162评论go pointers
go

查找对象支持的所有导入接口。

英文: Find all imported interfaces that object supports 问题 我有一个类似于os.Stdout的对象,我想知道它是否支持在我的平台上的io.Writ...
huangapple 2015年11月19日146评论go reflection
go

绕过反射开销的最佳方法是什么?

英文: What is the best way to work around the overhead of reflection? 问题 我有一个程序,它从内存映射中读取173个(c)数据结构,需...
huangapple 2015年11月14日162评论go reflection
go

New instance of struct from the type at runtime in GO

英文: New instance of struct from the type at runtime in GO 问题 我正在尝试在运行时使用结构体的类型(reflect.TypeOf)创建一个新的...
huangapple 2015年11月2日152评论go reflection
go

如何打开 reflect.Type?

英文: How to switch on reflect.Type? 问题 我已经成功完成了这个任务,但是它看起来并不高效: var t reflect.Type switch t { case re...
huangapple 2015年10月31日168评论go reflection
go

如何使这段基于GO的代码更简洁?

英文: How can I make this reflect based GO code simpler? 问题 我正在使用一种非常复杂的协议,结合了ASN和一种XDR的变体以及其他编码方式,对一个...
huangapple 2015年10月28日163评论go reflection
go

在Go语言中使用反射创建指针切片的方法是:

英文: Create slice of pointers using reflection in Go 问题 我看到了一些关于这个主题的反思的例子,但是我找不到解决这个问题的任何东西。这感觉有点复杂,...
huangapple 2015年10月28日146评论go reflection
go

How to extract the interface type name and package using reflection?

英文: How to extract the interface type name and package using reflection? 问题 我需要使用反射来获取类型名称和路径。类型Type...
huangapple 2015年10月19日219评论go reflection
48

文章导航

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

热门标签

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

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

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

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

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

    本页二维码