好好爱自己!

上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 179 下一页
摘要: 原文: https://www.geeksforgeeks.org/ex-command-in-linux-with-examples/ 1.3. ex Command-Line Options While most people know ex commands only by their use 阅读全文
posted @ 2021-05-07 09:43 立志做一个好的程序员 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 原文:https://blog.csdn.net/yexiangCSDN/article/details/80981393 ex命令用于在Ex模式下启动vim文本编辑器。 ex执行效果如同vi -E,使用语法及参数可参照vi指令,如要从Ex模式回到普通模式,则在vim中输入":vi"或":visua 阅读全文
posted @ 2021-05-06 18:37 立志做一个好的程序员 阅读(1619) 评论(0) 推荐(0) 编辑
摘要: command+shift+P,然后键入:go:install/update tools,将所有 16 个插件都勾选上,然后点击 OK 即开始安装 go env -w GOPROXY=https://goproxy.io go切换proxy中国代理 GO111MODULEGO111MODULE 有三 阅读全文
posted @ 2021-05-03 21:12 立志做一个好的程序员 阅读(274) 评论(0) 推荐(0) 编辑
摘要: https://studygolang.com/topics/10399 var a = []int{1,2,3} fmt.Printf("%p\n", &a) b :=a fmt.Printf("%p\n",&b) // 问题1、为什么b的地址跟a不同,他们不是共享底层数组吗? b = appen 阅读全文
posted @ 2021-04-26 17:57 立志做一个好的程序员 阅读(169) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/chenwenbiao/archive/2011/08/01/2123905.html demo.php <?php $fp = fopen("file_lock.txt", "w"); //加锁 if (flock($fp, LOCK_EX)) { 阅读全文
posted @ 2021-04-26 16:38 立志做一个好的程序员 阅读(680) 评论(0) 推荐(0) 编辑
摘要: https://gavv.github.io/articles/file-locks/ File locking in Linux 29 Jul 2016 linux posix ipc Table of contents Introduction Advisory locking Common f 阅读全文
posted @ 2021-04-26 15:57 立志做一个好的程序员 阅读(344) 评论(0) 推荐(0) 编辑
摘要: package main import ( "log" "os" ) var size = int64(1024 ) func main() { f, err := os.Create("foobar1.bin") if err != nil { log.Fatal(err) } defer f.C 阅读全文
posted @ 2021-04-26 11:27 立志做一个好的程序员 阅读(936) 评论(0) 推荐(0) 编辑
摘要: 1、使用mmap需要注意的一个关键点是,mmap映射区域大小必须是物理页大小(page_size)的整倍数(32位系统中通常是4k字节)。原因是,内存的最小粒度是页,而进程虚拟地址空间和内存的映射也是以页为单位。为了匹配内存的操作,mmap从磁盘到虚拟地址空间的映射也必须是页。 再啰嗦几句: lin 阅读全文
posted @ 2021-04-26 10:43 立志做一个好的程序员 阅读(2718) 评论(0) 推荐(0) 编辑
摘要: 15 2 Is there anyway to create null terminated string in Go? What I'm currently trying is a:="golang\0" but it is showing compilation error: non-octal 阅读全文
posted @ 2021-04-25 18:10 立志做一个好的程序员 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 原文: https://studygolang.com/articles/2271 package main import ( "fmt" "strings" "log" ) func main() { reader := strings.NewReader("Go语言学习园地") reader.S 阅读全文
posted @ 2021-04-22 17:39 立志做一个好的程序员 阅读(3485) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 179 下一页

不断学习创作,与自己快乐相处