会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
melody787
博客园
首页
新随笔
联系
订阅
管理
2022年5月19日
shell脚本,获取执行结果
摘要: Shell获取上一个命令执行结果,传递到下个命令执行,手写shell脚本 示例: #!/bin/bash echo "list gps image..." docker images|grep gps if [ $? -eq 0 ]; then echo "success..." ret1=`doc
阅读全文
posted @ 2022-05-19 16:57 melody#787
阅读(1959)
评论(0)
推荐(0)
2022年3月30日
go slice append 分析
摘要: 先看一段代码: func main() { s := []int{1, 2, 3, 4, 5, 6, 7, 8, 9} p1 := s[:3] p2 := s[4:] p3 := append(p1, p2...) fmt.Printf("p1 = %v \n", p1) fmt.Printf("p
阅读全文
posted @ 2022-03-30 17:11 melody#787
阅读(35)
评论(0)
推荐(0)
2022年3月4日
Channel
摘要: //channel默认为双向通道,也可为单向通道 //只写单向通道 只接受通道 var intchan chan<- int intchan <-1 //只读单向通道 只发送通道 var intchan <-chan int v := <-intchan //使用close()关闭通道 close(
阅读全文
posted @ 2022-03-04 16:48 melody#787
阅读(206)
评论(0)
推荐(0)
Mac Brew安装PHP运行环境
摘要: 1、安装homebrew ruby -e "$(curl -fsSL [https://raw.githubusercontent.com/Homebrew/install/master/install](https://raw.githubusercontent.com/Homebrew/inst
阅读全文
posted @ 2022-03-04 11:19 melody#787
阅读(746)
评论(0)
推荐(0)
游戏服务器:到底使用UDP还是TCP
摘要: 在编写网络游戏的时候,到底使用UDP还是TCP的问题迟早都要面对。 一般来说你会听到人们这样说:“除非你正在写一个动作类游戏,否则你就用TCP吧” 或者是 “你能够在MMO游戏中用TCP,因为魔兽世界就用的TCP!” 遗憾的是,这些观点都没有反映这个问题的复杂性。 #####-背景 首先,说明一下,
阅读全文
posted @ 2022-03-04 11:16 melody#787
阅读(493)
评论(0)
推荐(0)
Gitea版本升级
摘要: 背景: 原本公司使用gitea1.8版本,但是不支持飞书webhook,想到升级,做到一个自动提醒和及时代码自动发布到测试服务器,才着手在本地在本地虚拟机上使用原有数据升级。gitea的文章很少,只有官方文档可以参考,才在此记录。 环境: Windows VBox, Gitea1.8.4 Gitea
阅读全文
posted @ 2022-03-04 11:13 melody#787
阅读(639)
评论(1)
推荐(0)
公告
点击右上角即可分享