首页
系统
Android
Mac&iOS
Windows
Debian
Ubuntu
CentOS
ProxmoxVE
编程语言
Go
Js/Ts
Java
C#
C/C++
软件使用
大模型
博客
Office
Docker
Nginx
MySQL
MongoDB
工具
IP查询接口
随笔
归档
动态
留言
关于
过客
累计撰写
416
篇文章
累计创建
55
个标签
累计收到
0
条评论
栏目
首页
系统
Android
Mac&iOS
Windows
Debian
Ubuntu
CentOS
ProxmoxVE
编程语言
Go
Js/Ts
Java
C#
C/C++
软件使用
大模型
博客
Office
Docker
Nginx
MySQL
MongoDB
工具
IP查询接口
随笔
归档
动态
留言
关于
目 录
CONTENT
最新文章
Go中字符串替换
在go中,可以用strings包里的Replace方法来做字符串替换 函数申明 package strings // Replace returns a copy of the string s with the first n // non-overlapping instances of ol
2019-11-12
8
0
0
Go
Mac中使用密钥连接SSH
1. 打开终端 2. 输入"ls -a" 查看目录,看是否包含 ".ssh"目录,如果没有,创建 root:~ root$ ls -a . .gitignore_global Desktop .. .hgignore_global Documents .CFUserTextEncoding
2019-11-11
4
0
0
Mac&iOS
Goland 保存时自动格式化代码 fmt
默认情况下,goland idea保存的时候会自动格式化代码的,但是,有时会出现不自动化的情况。下面介绍一下手动配置: 1. File->Settings(Ctrl+Alt+S)打开设置页面 2. 在左侧找到Tools->File Watchers 3. 在左侧添加go fmt 4. 使用默认的配置
2019-11-10
4
0
0
Go
Go中使用Google Authenticator
现在为了安全Google二次验证使用越来越平凡了,所以我们自己做的一些产品中,也会用到Google Authenticator。 介绍 Google Authenticator采用的算法是TOTP(Time-Based One-Time Password基于时间的一次性密码),其核心内容包括以下三点
2019-11-10
8
0
0
Go
Go中string和int类型相互转换
string转成int: int, err := strconv.Atoi(string) string转成int64: int64, err := strconv.ParseInt(string, 10, 64) string转成uint64: uint64, err := strconv.P
2019-11-09
5
0
0
Go
Go深度拷贝slice、map
在Go中没有像Java、C#那种封装好的slice、map深度拷贝函数,下面封装一个 func DeepCopy(value interface{}) interface{} { if valueMap, ok := value.(map[string]interface{}); ok { n
2019-11-08
4
0
0
Go
iOS-设置自定义的系统默认字体
1. 先设置自定义的字体 将字体文件拖到工程目录中,并增添加到Bundle中。这里以阿里巴巴普惠体为例。 2. 在info.plist中增加字体 3. 添加字体类 右键创建新文件->选择OC文件 File: 自己定义一个文件名 File Type:Category Class:UIFont 4
2019-11-06
11
0
0
Mac&iOS
使用sfntly提取ttf字体
在游戏中经常需要用到各种字体,但是一些字体都是比较大的。我们只需要提取自己需要的一些字符就行了。 sfntly是一款谷歌开源的字体提取工具 下载地址:https://github.com/googlefonts/sfntly 编译 用Intellij IDEA打开java工程目录,设置Artifac
2019-11-06
8
0
0
软件使用
JS实现悬浮导航制作
1. css部分,需要做一个导航栏。 创建style.css文件,并写入以下内容 body{ margin: 0; padding: 0; } .nav{ background-color:#521C1C; width: 100%; height: 38px
2019-11-05
6
0
0
Js/Ts
Go 获取时间的年份、月份以及日期
1. 通过time获取年、月、日 year:=time.Now().Year() month:=time.Now().Month()//time.Now().Month().String() day:=time.Now().Day() 2. 字符串转Time tm := "2019-01-01 0
2019-11-05
5
0
0
Go
1
...
37
38
39
...
42