client.go:9:2: cannot find module providing package google.golang.org/grpc: working directory is not part of a module 因为开启mod模式了export GO111MODULE=aut ...
分类:
其他好文 时间:
2021-01-26 12:04:45
阅读次数:
0
参考官网流程: https://golang.google.cn/doc/install wget https://golang.google.cn/dl/go1.15.7.linux-amd64.tar.gz tar -C /usr/local -zxvf go1.15.7.linux-amd64 ...
分类:
系统相关 时间:
2021-01-26 11:52:20
阅读次数:
0
Power Strings Description Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcde ...
分类:
其他好文 时间:
2021-01-26 11:47:12
阅读次数:
0
第1章 Redis初识 Redis 是什么 开源 基于键值的存储服务系统 多种数据结构 strings hash linked list sets sorted sets 高性能、功能丰富 Redis 的特性 速度快 持久化 多种数据结构 支持多种编程语言 功能丰富 简单 主从复制 高可用、分布式 ...
分类:
其他好文 时间:
2021-01-25 11:08:42
阅读次数:
0
Two strings are considered close if you can attain one from the other using the following operations: Operation 1: Swap any two existing characters. F ...
分类:
其他好文 时间:
2021-01-25 11:07:52
阅读次数:
0
// 演示代码 function unique(arr) { /* your code */ } let strings = ["Hare", "Krishna", "Hare", "Krishna", "Krishna", "Krishna", "Hare", "Hare", ":-O" ]; a ...
分类:
编程语言 时间:
2021-01-25 10:47:59
阅读次数:
0
直接上demo package main import ( "context" "fmt" limt "go.uber.org/ratelimit" "golang.org/x/time/rate" "github.com/juju/ratelimit" "time" ) func Demo1() ...
分类:
其他好文 时间:
2021-01-25 10:36:25
阅读次数:
0
问题 too many open files错误 最近在看golang,写了个扫描title的脚本,发现打开文件的时候会报错,记录下。 too many open files https://github.com/Stu2014/go package main import ( "bufio" "c ...
分类:
其他好文 时间:
2021-01-22 11:53:36
阅读次数:
0
// 演示代码 function unique(arr) { /* your code */ } let strings = ["Hare", "Krishna", "Hare", "Krishna", "Krishna", "Krishna", "Hare", "Hare", ":-O" ]; a ...
分类:
编程语言 时间:
2021-01-22 11:50:53
阅读次数:
0
学会一种语言最好的办法就是拿它写一道算法题{ 鉴于sort和stl实现不了,就选取了莫比乌斯反演的题来实现 golang还是挺臭屁的,但是大的上面难度还是很低的,go也熟悉了不少 package main import "fmt" func Min(x, y int) int { if x < y ...
分类:
编程语言 时间:
2021-01-21 10:45:47
阅读次数:
0