Go-技巧积累 使用系统粘贴板利用 github.com/atotto/clipboard 模块, 如: 123456789101112131415161718package mainimport ( "fmt" "github.com/atotto/clipboard")func main() { text := "Hello, World!" 2023-10-04 Go
Go-bubbletea-使用 Bubble tea Github 地址结合 Cobra, Viper 和 Bubbletea Elm 简介Elm 是一种函数式编程语言的名称, 其重要工作流程包括: Model, application 的状态 View, 将状态转换为 text Update, 更新状态 based on messages 基本使用结构示意: 引入 12345678package mainimport 2023-10-02 Go
导入外界包并编译go代码 先运行: 1go mod tidy 构建 go.mod 和 go.sum 文件. 其会自动下载依赖. 然后进行编译: 1go build ./xxx.go 2023-10-02 Go
什么是-BT “BT” 通常是指 BitTorrent,是一种用于文件共享和分发的协议。BitTorrent 协议基于对等网络(Peer-to-Peer Network)架构,允许用户通过互联网共享和下载文件,而不依赖于单个中央服务器。 在 BitTorrent 中,一个文件被分割成多个小块(chunks),并由不同的用户(也称为 “种子”)共享。当一个用户下载一个文件时,它同时也会上传已经下载的部分给其他用户 2023-10-02 Web
Go语言实战-Notes 本书的示例代码 2 快速开始一个 Go 程序示例如: 123456789101112131415161718192021package mainimport ( "log" "os" _ "github.com/goinaction/code/chapter2/sample/matchers" " 2023-09-30 Go
GO语言趣学指南-Notes 预备在 Linux 中编译 .go 文件: 1go build name.go 将编译好的 go 二进制安装到系统中: 1go install 示例代码: 123456789package mainimport ( "fmt")func main() { fmt.Println("Hello, palyground")} 2023-09-26 Go
Kubernetes-基本使用 Kubernetes 官网Kubernetes 官方文档Kubernetes 官方中文文档 介绍Kubernetes (K8S) 是一个开源的容器编排和管理平台. 用于管理多部主机上的容器. (使用容器, 虚拟机部署的好处在于环境隔离) Kubernetes 一词源于希腊语, 意为 “舵手”, 这从其 logo 就能看出 和 Kubernetes 类似功能的应用还有: Apache Mesos 2023-09-26 Linux
DWM-在屏幕指定位置开启一个float的应用 需要修改两个位置: 在 config.h 文件中添加一个名称用于 XGetWindowProperty 获取应用的 title, 也在这里修改键位和应用大小 (宽高) 在 dwm.c 文件的 manage 函数下添加:12345if (!strcmp(c->name, testname)) { c->isfloating = True; c->x = c-> 2023-09-25 Linux
搜索Clash节点 利用 fofa 查找 clash api: body="{\"hello\": \"clash\"}" clash.meta: body="{\"hello\":\"clash.meta\"}" openclash: port=" 2023-09-25 Web