摘要:
序章 对比IT世界的各种第一。 从电脑,到数据中心,到云计算,到智算中心,到…… 从巨大到微小…… 1946年,第一台电脑 世界上第一台 通用计算机 “ ENIAC ”于1946年2月14日在美国 宾夕法尼亚大学 诞生。 发明人是美国人莫克利(JohnW.Mauchly)和艾克特(J.Presper 阅读全文
摘要:
go version go1.22.1 windows/amd64 Windows 11 + amd64 x86_64 x86_64 GNU/Linux 序章 读取文件内容,写入新文件(可能存在、也可能不存在)。 相关标准库 io fs os path filepath Show Code func 阅读全文
摘要:
go version go1.22.1 windows/amd64 Windows 11 + amd64 x86_64 x86_64 GNU/Linux 序章 多个 给 map 写入数据。 1、基本的map:make(map[any]any) 失败。 2、sync.Map 成功。 测试场景: 1K 阅读全文
摘要:
go version go1.22.1 windows/amd64 Windows 11 + amd64 x86_64 x86_64 GNU/Linux 序章 package time https://pkg.go.dev/time Package time provides functionali 阅读全文
摘要:
go version go1.22.1 windows/amd64 VS code 1.89.0 序章 建立一个 web项目,使用 gin web 框架。 Tutorial: Developing a RESTful API with Go and Ginhttps://go.dev/doc/tut 阅读全文
摘要:
HTTP The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypermedia information systems. bing.com 阅读全文
摘要:
go1.22.2 -- 序章 golang 官网的 代码汇总,汇总到一起,方便查阅。 注,如有侵权,请通知我 处理🥂。 go.dev 首页 同 https://golang.google.cn 首页。 说明,go.dev 访问时,可能存在访问失败的情况。 搜索:Try Go package mai 阅读全文
摘要:
vs code 1.88.1(2024-04-10) gitea-1.20-gogit-windows-4.0-amd64 Windows 11 序章 本文演示 自己用的 Visual Studio code 1.88.1 中: 新建分支 合并分支 两个操作。 说明,本文仅展示了 在自己的开发环境, 阅读全文
摘要:
go version go1.22.1 windows/amd64 Windows 11 + amd64 x86_64 x86_64 GNU/Linux 序章 golang 支持 跨平台,支持的方式 是 在一个平台 编译其它平台的可执行程序。 本文 介绍 Windows 11(开发主机) 上 编译 阅读全文
摘要:
序章 什么是 RPC? 答:RPC(Remote Procedure Call)远程过程调用协议。 RPC 协议的用途是什么? 答:服务间方便地调用,主要后端服务之间。看到一段话,【对外使用 RESTful API,对内使用 RPC】 使用RPC协议的好处? 答:相对于 RESTful API,(数 阅读全文