Searching We.Love.Privacy.Club

Twts matching #go
Sort by: Newest, Oldest, Most Relevant

Dumpling 导出表内并发优化丨 TiDB 工具分享

李淳竹(lichunzhu),TiDB 研发工程师

SIG 组:Migrate SIG Community,主要涵盖 TiDB 数据处理工具,包含 TiDB 数据备份/导入导出,TiDB 数据变更捕获,其他数据库数据迁移至 TiDB 等

前言

Dumpling 是由 Go 语言编写的用于对数据库进行数据导出的工具。目前支持 MySQL 协议的数据库,并且针对 TiDB 的特性进行了优化。 [Go Dumpling! 让�� … ⌘ Read more

⤋ Read More

GoCN 每日新闻(2022-01-04)

GoCN 每日新闻(2022-01-04)
  1. 「GoCN 酷 Go 推荐」go 语言位操作库 — bitsethttps://mp.weixin.qq.com/s/UcuKgKnt4fwrg3c-UHc3sw
  2. Go 通过 Map/Filter/ForEach 等流式 API 高效处理数据https://mp.weixin.qq.com/s/7ATm_Zu7ib9MXf8ugy3RcA
  3. 优化 Go 二进制文件的大小[https://prog.world/optimizing-the-size-of-the-go-binary](https://prog.world/optimizing-the-si … ⌘ Read more

⤋ Read More

What’s new in dubbo-go-pixiu 0.4.0
Dubbo-go-pixiu 是一款高性能 API 网关,支持 Dubbo 和 Http 等多种协议。具体介绍文章可以参考 《Dubbo 跨语言调用神兽:dubbo-go-pixiu》

近期社区发布了 0.4.0 版本,具体请查看 v0.4.0。相关改进实在太多,本文只列出相关重大 feature、bugfix 、 性能提升项。

1 动态从 Spring Cloud 和 Dubbo 注册中心拉取路由和集群配置数据

Pixiu 原本依赖本� … ⌘ Read more

⤋ Read More

Go 通过 Map/Filter/ForEach 等流式 API 高效处理数据

什么是流处理

如果有 java 使用经验的同学一定会对 java8 的 Stream 赞不绝口,极大的提高了们对于集合类型数据的处理能力。

”`
int sum = widgets.stream()

          <span class="o">.</span><span class="na">filter</span><span class="o">(</span><span class= ... ⌘ [Read more](https://gocn.vip/topics/20922)```

⤋ Read More

Bundling templates with embed #embed #howto href=”https://we.loveprivacy.club/search?q=%23assets”>#assets**
If you’ve been embedding assets  or templates with rakyll/statik, markbates/pkger or any other bundler, you will probably want to convert to the new embed package brought by Go 1.16 to replace them all. This article, following one about pkger, explains how, going through the exact same steps to make converting easier. 1 points posted by FGM ⌘ Read more

⤋ Read More

GinAdmin 后台管理模板

GinAdmin

这个项目是以 Gin 框架为基础搭建的后台管理平台,虽然很多人都认为 go 是用来开发高性能服务端项目的,但是也难免有要做 web 管理端的需求,总不能再使用别的语言来开发吧。所以整合出了 GinAdmin 项目,请大家多提意见指正!欢迎 star ⭐⭐

Image

Image

依赖
  • golang > 1.8
  • Gin
  • BootStrap
  • LayUi
  • WebUpload
  • [Light Year Admin Using Ifra … ⌘ Read more

⤋ Read More

Excelize 发布 2.5.0 版本,Go 语言 Excel 文档基础库

Image

Excelize 是 Go 语言编写的用于操作 Office Excel 文档基础库,基于 ECMA-376,ISO/IEC 29500 国际标准。可以使用它来读取、写入由 Microsoft Excel™ 2007 及以上版本创建的电子表格文档。支持 XLSX / XLSM / XLTM 等多种文档格式,高度兼容带有样式、图片 … ⌘ Read more

⤋ Read More

go 语言位操作库 bitset
bitset库 实现了 bitsets 数据结构,这是一种正整数和布尔值映射关系的结构,它比 map[uint]bool 更高效

什么是 bitsets

bitsets 基本思想是用一个 bit 位来标记某个元素对应的 Value,每一位表示一个数,1 表示存在,0 表示不存在
比如我要表示 1, 3, 7 这 3 个数

  1. 构造一个空白 bitsets:00000000
  2. 每位代表的值如下:76543210
  3. 想要表示的值标记 1:10001010
有什么好处?

�� … ⌘ Read more

⤋ Read More

I just went to type the phrase “I avoid Linux like the plague” but then remembered that we’ve all learned that most people won’t actually go much out of their way to avoid the plague.

⤋ Read More

GoCN 每日新闻 (2021-12-30)
GoCN 每日新闻 (2021-12-30)

  1. 如何在 Go 中将 [] byte 转换为 io.Reader?https://mp.weixin.qq.com/s/nFkob92GOs6Gp75pxA5wCQ
  2. 彻底搞懂 Kubernetes 中的 Eventshttps://mp.weixin.qq.com/s/QRIck4M1-CJVrVDoJEsjQA
  3. 对比 Rust 和 Go 对二进制数据处理[https://medium.com/@protiumx/advent-of-code-rust-go-and-binary-operators-7dd03057c134](https://medium.com/@protiumx/advent-o … ⌘ Read more

⤋ Read More

Ntfy.sh
I subscribe to the Hacker News front page via RSS. There is a lot of stuff there that I just mark as read without taking a closer look. But sometimes something catches my eye and I take a closer look. Today “Show HN: A tool to send push notifications to your phone, written in Go” is one of them. ⌘ Read more

⤋ Read More

[深圳] 百度 BFE 项目招聘 Go 研发工程师

团队简介

百度智能负载均衡团队负责维护 BFE 开源项目,并研发负载均衡商业产品。
BFE 是基于 Go 语言的七层负载均衡系统,已经在百度内经过多年的研发,每天转发万亿级的请求。BFE 于 2019 年 7 月开源,2020 年 6 月成为 CNCF 官方项目。
除百度以外,BFE 已经被 360、用友网络、招商银行、央视网等公司或机构使用。

⤋ Read More

Go 中这么多创建 error 的方式,你真的了解它们各自的应用场景吗
大家好,我是渔夫子。今天从应用场景的角度来聊聊我对 error 的理解。

原文链接: https://mp.weixin.qq.com/s/ncEemMJ0kQayVPJrnF9aew

01 什么是 Error

在 Go 中,error 是一种内建的数据类型。在 Go 中被定义为一个接口,定义如下:


<span class="c">// The error built-in interface type is the conventional interface for< ... ⌘ [Read more](https://gocn.vip/topics/20911)

⤋ Read More

梦想总是要有的 - 工作 20 年程序员的 2021 年度总结
跌宕起伏的 2021 年快要过去了,今年对我来说经历的实在太多,提笔做个简单的总结吧。

回顾目标

去年的年终总结,我给自己立了两个 flag。

Image

第一个虽然不可量化,不是一个好的目标,但我认为完成的还是不错的,go-zero 的工程效率已经得到了社区的广泛认可,感谢所有使用和� … ⌘ Read more

⤋ Read More

GoCN 每日新闻 (2021-12-24)
GoCN 每日新闻 (2021-12-24)

  1. ccgo 更新添加 macOS clang 支持https://pkg.go.dev/modernc.org/ccgo/v3
  2. 一个简单强大的 SSH 秘钥管理器https://golangexample.com/skm-a-simple-and-powerful-ssh-keys-manager/
  3. golang 会缓存 dns 吗[https://www.reddit.com/r/golang/comments/rn9b6d/is_golang_caching_dns/](https://www.reddit.com/r/golang/comments/rn9b6d/is_golang_ca … ⌘ Read more

⤋ Read More

《真·简单》Golang 轻量级桌面程序 wails 库(圣诞节限定)

Golang 轻量级桌面程序 wails2 教学 推荐理由

不依赖 cgo! 不依赖 cgo! 不依赖 cgo!真的不依赖 cgo,且跨平台,原生渲染 无嵌入式浏览器,轻量级,生成的文件很小,而且只有一个可执行文件就可运行。

功能介绍
  1. 后端使用标准 Go
  2. 使用任意前端技术构建 UI 界面
  3. 快速为您的 Go 应用生成 Vue、Vuetify、React 前端代码
  4. 通过简 … ⌘ Read more

⤋ Read More

Go 实战 | 一文带你搞懂从单队列到优先级队列的实现
原文链接: https://mp.weixin.qq.com/s/bPLRcsmSO5_MvqN8F812zQ

大家好,我是「Go 学堂」的渔夫子,今天跟大家聊聊在我们项目中的优先级队列的实现及应用场景。

优先级队列概述

队列,是数据结构中实现先进先出策略的一种数据结构。而优先队列则是带有优先级的队列,即先按优先级分类,然后相同优先级的再 … ⌘ Read more

⤋ Read More

GoCN 每日新闻(2021-12-22)

GoCN 每日新闻(2021-12-22)
  1. 使用 Go 和 SQLite 构建生产应用程序
  2. 使用 context.Context 模拟 API 客户端https://incident.io/blog/golang-client-mocks
  3. 一种可嵌入的 Go 脚本语言,实现了逻辑编程语言 Prologhttps://github.com/ichiban/prolog
  4. SSA:终于知道编译器偷摸做了哪些事[https://mp.weixin.qq.com/s/nOhMsMeP1pUFEXKAMUzbWg](https://mp.weixin.qq.com/ … ⌘ Read more

⤋ Read More

http benchmarking 工具”go-wrk”支持 javascript 脚本了
wrk 是一个比较出名的 http benchmarking 工具,它支持用 Lua 脚本编写任务。

go-wrk 是原作者在早年开发的仿 wrk 的工具,但不支持脚本。没有脚本的话在测试稍复杂的业务时就力不从心。

现在我给加上了 JavaScript 的支持,用的 js 引擎是 Goja. 欢迎大家体验测试提 issue, 有时间的话我会继续改进。详见: [ … ⌘ Read more

⤋ Read More

** Introducing Guava **
I’ve been fascinated by Forth and concatenative programming for a while now. I can’t remember how I initially stumbled in to it, but once I got going I’ve been unable to stop. I’m a wee bit in love with it.

Wanting to play a bit with implementing my own spin on things and having opinions about tooling, I picked up a little scripting language called [Ripen](https://felix.plesoia … ⌘ Read more

⤋ Read More

Future of Yarn.social

Today I’m going to talk about Yarn.social’s future, a roadmap into where we’re going and thinking. I’ll also write a little about it’s history of where we came from and highlight how Yarn.social is different and in my opinion better.

What?

For those of you new to my blog or Yarn.social; Yarn.social is a decentralised social media platform, a microBlogging platform. It was originally crea … ⌘ Read more

⤋ Read More