Golang标准库——archive/tar

Linkname string // 链接文件的目标名称。Devmajor int64 // 字符设备或块设备的主设备号。

Golang + gRPC 实践

// proto版本。// 指定包名,默认go中包名也是这个。// 定义Love服务。// 实例化grpc server。

马蜂窝搜索基于 Golang 并发代理的一次架构升级

很多用户在使用马蜂窝时,都会有目的性地主动搜索与自己旅行需求相关的各种信息,衣食住行,事无巨细,从而做出最符合需求的旅行决策。

国内 Golang 开发有没有 qian 途?爬了些数据告诉你

Golang从前一个月的16位一跃来到了12位,并且被认为是即将冲进Top10的有力候选;另一方面,StackOverflow2018年度薪资计算器显示Golang成为了最受开发者欢迎的编程语言第5名、最受雇主青睐语言第20名与开发者最想尝试语言第3名。

Golang遇坑总结

1.

Golang配置文件管理神器Viper(下)

原文:SafeWriteConfig – writes the current viper configuration to the predefined path. Errors if no predefined path. Will not overwrite the current config file, if it exists.

Golang + MongoDB ReplSet副本集

本文介绍MongoDB副本集,暂且按照3个节点来配置。golang连接MongoDB副本集,并执行CRUD操作;每个节点IP:A节点:11.11.11.11B节点:22.22.22.22C节点:33.33.33.33第一步:安装MongoDB每个节点安装MongoDBvi/etc

Golang标准包详解——string.Join

1、用法func Join(a []string, sep string) stringJoin concatenates the elements of a to create a single string.

Golang GinWeb框架4-请求参数绑定和验证

charset=utf-8.如果手动设置响应码,会警告响应头已经设置,比如提示: Headers were already written. Wanted to override status code 400 with 422, 如果想要更好的控制这些行为,建议使用下面对应的ShoudBind方法.

go语言学习总结(二十九)Golang的反射

Golang提供了一种机制,在编译时不知道类型的情况下,可更新变量、运行时查看值、调用方法以及直接对他们的布局进行操作的机制,称为反射。