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

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

bj
登录
  • 友情链接
站内
interface

interface

go

Golang – 无法从接口实现中推断出 T 的类型?

英文: Golang - Cannot infer T from interface implementation? 问题 假设我有以下代码: type Getter[T any] interface...
huangapple 2022年9月5日235评论generics go
go

Golang:隐式结构匹配

英文: Golang: implicit struct matching 问题 考虑以下代码: type Rectangle struct { Width, Height, Area int } ty...
huangapple 2022年9月2日174评论go struct
go

Golang mockgen “does not implement” interface issue Golang的mockgen“未实现”接口问题

英文: Golang mockgen "does not implement" interface issue 问题 我有一个接口,并使用mockgen创建了模拟对象: type ...
huangapple 2022年8月29日162评论go unit-testing
go

Golang在子包中访问父包的值

英文: Golang accessing parent package values in child package 问题 你好,我认为我遇到了一个接口/结构问题。我知道Go语言不支持继承,我在解决...
huangapple 2022年8月23日149评论go interface
go

结构指针与结构的接口的函数赋值显示不同的值

英文: Function assignments of an interface of a structure pointer with a structure show different valu...
huangapple 2022年8月22日160评论go struct
go

全局变量 _ 的含义是将 nil 转换为一个接口。

英文: what's the meaning of global variable _ which convers nil to an interface 问题 我正在尝试理解全局变量_在下面...
huangapple 2022年8月18日155评论go interface
go

如何处理将数据解组到一个自定义接口中,其类型只能在解组后确定。

英文: How to handle unmarshaling to a custom interface whose type could only be determined after unmar...
huangapple 2022年8月14日178评论go json
go

如何通过组合来自不同包的接口来创建一个接口?

英文: How to create an interface by combining interfaces from different packages? 问题 情况 我正在使用pion/rtpi...
huangapple 2022年7月22日159评论go interface
go

将`fs.FS`包装在我自己实现的`fs.FS`中会导致`fs.Glob()`返回没有匹配项。

英文: Wrapping a `fs.FS` in my own implementation of `fs.FS` makes `fs.Glob()` return no matches 问题 你的...
huangapple 2022年7月20日147评论go interface
go

如何将一个未知类型的数组转换为 type []any 类型?

英文: How do you cast an array of unknown type to type []any? 问题 假设只有数组作为参数传递给arr参数,我希望每次调用unpackArray...
huangapple 2022年7月19日166评论go interface
56

文章导航

1 … 5 6 7 8 9 10 11 12 13 … 56
name
开发者交流平台
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
文章117266 留言 4 访客18556912

热门标签

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

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

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

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

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

    本页二维码