command
module
Version:
v0.0.0-...-804f5dd
Opens a new window with list of versions in this module.
Published: Apr 7, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
应用概述
基于使用github图床,开发的辅助工具。
要求会简单的使用GIT,创建仓库、切换分支、提交等。
开发背景
在编写Markdown文档时,常常会使用图床存放Image文件。
综合考虑,选用github。
在使用过程中,添加图片、提交、复制链接,重复性工作比较多。
再者,刚刚学习go
,为了解其语法特性,写点简单的东西来练练手。
基本功能
- 图片展示。点击图片,自动生成对应格式链接地址到粘贴板
- 图片上传。支持拖动自动上传
项目构建
其他环境下,不保证是否能够正常构建。
开发环境
前置安装
因网络原因,go get
可能会失败。
将对应源码,拷贝到GOPATH
中即可。(参考)
go get github.com/akavel/rsrc
go get github.com/lxn/win
go get github.com/lxn/walk
构建过程
可查看walk具体说明
- 使用
rsrc tool
,生成*.syso
文件(不需重复生成)
rsrc -manifest main.manifest -o main.syso
- 构建
// 调试(运行会有调试窗口)
go build
// 正式构建
go build -ldflags="-H windowsgui"
- 运行生成的
.exe
文件
目录结构
gpics
├─ base 基础操作
│ ├─ config 应用配置
│ ├─ git 封装git相关命令
│ └─ img 读取Image资源
│
├─ windows 窗口构建相关
│
├─ main.go
│
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.