英文: How to extend a template in go? 问题 以下是翻译好的内容: 这是问题:每个页面的“content”部分有几个“article”,我想在每个文章下面插入一个“li...
在超类中找不到子类的接口方法。
英文: Interface method can't be found on subclass from super class 问题 给定这段代码... type BaseItf1 inte...
Go JSON map 新手
英文: Go JSON map newbie 问题 如何使这个小程序工作?我试图从一个 JSON 字符串中读取一堆 cookie,并将其存储到一个 map 中并打印出来。下面的程序没有打印任何内容。 ...
在Golang中处理并发的HTTP请求
英文: Process concurrent HTTP requests in Golang 问题 我正在尝试处理一个包含200个URL的文件,并使用每个URL进行HTTP请求。每次最多同时处理10个...
如何在发送消息后保持 WebSocket 连接处于 OPEN 状态?
英文: How to keep a websocket connection in OPEN readystate after send? 问题 我对Websockets还不太熟悉。 在我的设置中,我...
在这里,需要使用C.GoBytes来检索C缓冲区,还是只需要一个指针就足够了?
英文: Is C.GoBytes required to retrieve a C buffer, or is a pointer sufficient here? 问题 下面的cgo代码中有一个函数...
Gorm的Join操作没有映射到模型。
英文: Gorm Joins not mapping to models 问题 我正在尝试通过使用SQL连接而不是Preload()来优化我的应用程序。 但是我遇到了一个问题,模型中的连接表始终为空。...
无法在Go协程中创建服务器。
英文: Go: cannot create a server in go routine 问题 尝试在Go协程中使用ListenAndServe时出现错误: package main import (...
Why does switch match a different type in below code sample in golang
英文: Why does switch match a different type in below code sample in golang 问题 链接: https://play.golang...
为什么在结构体上使用“&”运算符不返回数字地址?
英文: Why the & operator on struct doesn't return a digital address? 问题 我刚开始学习 Golang。 我发现 &am...
11727

