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

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

bj
登录
  • 友情链接
站内
interface

interface

go

在Go语言中遍历所有接口方法。

英文: iterate over all interface methods in go 问题 如何对一个 XML 文件运行一系列检查?每个检查都是一个返回两个字符串的方法:它的名称和通过或失败的结果...
huangapple 2021年10月27日163评论go interface
go

What's the difference between passing in a value or passing in an address into an interface in Go?

英文: What's the difference between passing in a value or passing in an address into an interface ...
huangapple 2021年10月8日150评论arrays go
go

Go – storing structs with the same embedded struct in a list

英文: Go - storing structs with the same embedded struct in a list 问题 我有多个具有相同嵌入结构的结构体。在其中一个结构体中,我想存储任...
huangapple 2021年10月4日197评论go struct
go

找到接口的所有实现并将它们放入一个切片中。

英文: Find all implementations of interface and put them in a slice 问题 我正在尝试实现一个类似这样的 Golang 插件接口: pac...
huangapple 2021年9月21日140评论go interface
go

ServeHTTP方法的http.ResponseWriter接口中传递的原始类型是什么?

英文: What original type is passed in ServeHTTP's http.ResponseWriter interface? 问题 在研究net/http时,我...
huangapple 2021年9月18日148评论go http
go

使用内部函数进行Golang的HTTP处理程序测试

英文: Golang http handler testing with inner functions 问题 我想为我的HTTP处理程序构建一个测试部分,并且我想使用HTTP处理程序函数的原样,但我...
huangapple 2021年9月16日145评论go struct
go

在一个接口中通过其他方法实现一个方法,这种做法是否可行?

英文: Is it possible to implement a method in one interface by others method in this interface? 问题 例如,...
huangapple 2021年9月2日159评论go interface
go

如何在实现接口的结构体中运行一个函数?

英文: How can I run a function in a structure that implements an interface? 问题 大家好,我来帮你翻译这段代码: package...
huangapple 2021年8月29日155评论go interface
go

如何模拟 net.Interface?

英文: How to mock net.Interface 问题 我正在尝试在Go中模拟net.Interface,我使用net.Interfaces(),并且希望有一个固定的返回值。但是net.In...
huangapple 2021年8月26日152评论go interface
go

嵌入式带有接口的结构不起作用。

英文: Embedded Structure with interface not working 问题 以下代码无法设置或获取基本实体的值。 如何使其能够获取基本结构和继承结构的返回值? type ...
huangapple 2021年8月23日204评论go struct
56

文章导航

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

热门标签

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

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

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

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

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

    本页二维码