Golang编程语言知识介绍


  • 首页

  • 随想录

  • 生活

  • OS

  • lua

  • redis

  • Golang

  • C

  • OpenVPN

  • web

  • OpenWRT

  • 运维

  • Git

  • 鸟哥的私房菜

  • IT杂谈

  • About Me

  • 友情链接

  • 搜索
close

linux中查找文件和字符串的命令find和grep

时间: 2022-09-29   |   分类: 运维     |   阅读: 1303 字 ~3分钟
在使用linux时,经常需要进行文件查找。其中查找的命令主要有find和grep。两个命令是有区的。 区别: find 命令是根据文件的属性进行查找,如
阅读全文 »

写给工程师的十条精进原则

时间: 2022-09-29   |   分类: IT     |   阅读: 8033 字 ~17分钟
引言 时间回到8年前,我人生中第一份实习的工作,是在某互联网公司的无线搜索部做一个C++工程师。当时的我可谓意气风发,想要大干一场,结果第一次
阅读全文 »

工作中如何做好技术积累

时间: 2022-09-29   |   分类: IT     |   阅读: 12641 字 ~26分钟
引言 古人云:“活到老,学到老。”互联网算是最辛苦的行业之一,“加班”对工程师来说已是“家常便饭”,同时互联网技术又日新月异,很多工程师都疲于
阅读全文 »

工程师的基本功是什么?该如何练习?

时间: 2022-09-29   |   分类: IT     |   阅读: 2343 字 ~5分钟
在美团有一句老话,叫做“苦练基本功”。美团创始人王兴解读的基本功是业务和管理的基本动作。只要能把基本功扎实练好,就能产生巨大价值。然而滴水石
阅读全文 »

字符串匹配的KMP算法

时间: 2022-09-29   |   分类: 算法     |   阅读: 1939 字 ~4分钟
https://www.ruanyifeng.com/blog/2013/05/) 字符串匹配是计算机的基本任务之一。 举例来说,有一个字符串"BBC ABCDAB ABCDABCDABDE",我想知道,里面是否包含另
阅读全文 »

Compare And Swap(CAS)原理分析

时间: 2022-09-29   |   分类: IT     |   阅读: 3329 字 ~7分钟
1 什么是CAS? 1.1 加锁和CAS解决原子性问题的不同原理 首先看如下代码: package com.nrsc.ch2.cas; import java.util.ArrayList; import java.util.List; public class CasDemo { //共享资源 static int i = 0; public static void increase() { i++; } public static void main(String[] args) throws InterruptedException
阅读全文 »

Copy a slice in Go

时间: 2022-09-29   |   分类: go     |   阅读: 384 字 ~1分钟
To duplicate a slice in Go, getting a deep copy of its contents, you need to either use the built-in copy() function, or create a new empty slice and add all the elements of the first slice to it using the append() function. Because of how slices are built in Go, assigning one slice to another only makes a shallow copy, and you should not use it if you want
阅读全文 »

golang 中 channel 的详细使用、使用注意事项及死锁分析

时间: 2022-09-29   |   分类: go     |   阅读: 4639 字 ~10分钟
golang 中 channel 的详细使用、使用注意事项及死锁分析 什么是 channel 管道# 它是一个数据管道,可以往里面写数据,从里面读数据。 channel 是 goroutine 之间数据通信桥梁,而且是线程安
阅读全文 »
4 5 6 7 8 9 10 11 12
shankusu2017@gmail.com

shankusu2017@gmail.com

501 日志
34 分类
39 标签
RSS 订阅
GitHub
© 2009 - 2023
粤ICP备2021068940号-1 粤公网安备44011302003059
0%