英文: Improving Polymorphism and Decorator pattern in Go 问题 我正在阅读一本设计模式的书,并尝试将这些模式应用到Go语言中,以此来学习两者。 目前...
In Go-Lang how can i take JSON file and quote to css
英文: In Go-Lang how can i take JSON file and quote to css 问题 { "data": "{\"addres...
如何在不进行内存分配的情况下使用gzip压缩并上传文件?
英文: How to gzip and post a file without memory allocation 问题 有人知道我如何打开一个文件,边压缩边发送到服务器吗?我有一个文件读取器,还有一...
如何使用GO包github.com/hashicorp/vault/api配置OIDC配置。
英文: How to configure the OIDC config with GO package-github.com/hashicorp/vault/api 问题 我们可以使用以下代码初始化...
我可以确认一下该字符串是否与我的正则表达式的第一个块匹配吗?
英文: Can I confirm if the string is matching with the first block at my regex 问题 我有以下代码: package main...
How to send strings between python and go
英文: How to send strings between python and go 问题 我正在尝试理解如何与用于 Python Socket 客户端的 Python Socket 服务器进行...
如何使用正则表达式清理文本以进行搜索?
英文: How can I clean the text for search using RegEx 问题 我可以使用以下代码来搜索文本str是否包含任何一个或两个keys,即它是否包含"...
Golang HTTP Get 请求无法解析某些 URL。
英文: Golang HTTP Get Request Not Resolving for some URL 问题 我正在尝试构建一个网站状态检查器。我发现对于一些URL(如https://www.h...
从响应中删除重复项
英文: Remove duplicate from response 问题 我有以下任务:我正在创建一个循环,向服务器发送请求并接收一个值,例如一个整数切片。然后我需要将这个整数切片传递给另一个任务。...
Golang gqlgen,通过Dataloading在单个DB查询中获取单独的字段。
英文: Golang gqlgen, fetching separate fields in a single DB query via Dataloading 问题 我正在尝试确定是否可能将具有自己...
2905