按照项目github文档上所示,在使用 mysql 时你可能会这样写: $ migrate -path db/migrations -database mysql://root:123456@127.0.0.1:3306/mydb version -database 用于指定数据库 DSN 格式的连 ...
分类:
Web程序 时间:
2021-01-05 11:13:09
阅读次数:
0
1: any 和 unknown类型的区别 any可以避开类型检查, 比如 let notSure: any = 'XXXXX'; notSure.Hello(); unknown在使用时必须进行类型断言: let x: unknown = 'xxxxxx'; console.log((x as s ...
分类:
其他好文 时间:
2021-01-05 10:50:47
阅读次数:
0
package mainimport ( "os/exec" "syscall")// open opens the specified URL in the default browser of the user.func main() { // 无GUI调用 cmd := exec.Comman ...
miao@openlib:~$ sudo rosdep init ERROR: cannot download default sources list from: https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sourc ...
分类:
其他好文 时间:
2021-01-05 10:38:30
阅读次数:
0
1. Handler使用引出 现在作为客户,有这样一个需求,当打开Activity界面时,开始倒计时,倒计时结束后跳转新的界面(思维活跃的朋友可能立马想到如果打开后自动倒计时,就类似于各个APP的欢迎闪屏页面),如下图: 作为初学者,可能觉得直接开启一个包含倒序循环的子线程就ok了,具体实现如下: ...
分类:
移动开发 时间:
2021-01-04 10:50:09
阅读次数:
0
问题 在用vue开发时碰到父组件传值子组件时不能触发子组件的props里对应的值的default值。 父组件代码: <template> <div> <TabOrderClaim :compData="companyInfo" ></TabOrderClaim> </div> </template> ...
分类:
其他好文 时间:
2021-01-04 10:30:32
阅读次数:
0
#include<stdio.h> #include<stdlib.h> #include<conio.h> #include<string.h> #define LEN sizeof(struct scorenode) #define DEBUG struct scorenode{ int num ...
分类:
其他好文 时间:
2021-01-02 11:46:23
阅读次数:
0
clientset := K8sClient() var ( err error data []byte deployment =&v1.Deployment{} ) if data, err = ioutil.ReadFile("C:/Users/72088854/go/src/config"); ...
分类:
其他好文 时间:
2021-01-02 11:33:55
阅读次数:
0
[html] view plain copy [root@zookeeper1 zookeeper-3.4.5]# bin/zkServer.sh status JMX enabled by default Using config: /usr/local/zookeeper-3.4.5/bin/. ...
分类:
其他好文 时间:
2021-01-02 11:24:19
阅读次数:
0
goroutine 池工具已经有好多了,好多都会基于channel或者cas 进行开发设计 谷歌的errgroup以及machine 都是一个不错的选择,Jeffail/tunny 也是一个比较稳定 的包 参考使用 main.go package main ? import ( "io/ioutil ...
分类:
其他好文 时间:
2021-01-02 11:17:37
阅读次数:
0