摘要:
原文: 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 阅读全文
摘要:
原文:https://blog.csdn.net/yexiangCSDN/article/details/80981393 ex命令用于在Ex模式下启动vim文本编辑器。 ex执行效果如同vi -E,使用语法及参数可参照vi指令,如要从Ex模式回到普通模式,则在vim中输入":vi"或":visua 阅读全文
摘要:
command+shift+P,然后键入:go:install/update tools,将所有 16 个插件都勾选上,然后点击 OK 即开始安装 go env -w GOPROXY=https://goproxy.io go切换proxy中国代理 GO111MODULEGO111MODULE 有三 阅读全文
摘要:
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 阅读全文
摘要:
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)) { 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
1、使用mmap需要注意的一个关键点是,mmap映射区域大小必须是物理页大小(page_size)的整倍数(32位系统中通常是4k字节)。原因是,内存的最小粒度是页,而进程虚拟地址空间和内存的映射也是以页为单位。为了匹配内存的操作,mmap从磁盘到虚拟地址空间的映射也必须是页。 再啰嗦几句: lin 阅读全文
摘要:
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 阅读全文
摘要:
原文: https://studygolang.com/articles/2271 package main import ( "fmt" "strings" "log" ) func main() { reader := strings.NewReader("Go语言学习园地") reader.S 阅读全文