gpics

command module
v0.0.0-...-804f5dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

README

应用概述

基于使用github图床,开发的辅助工具。 要求会简单的使用GIT,创建仓库、切换分支、提交等。

开发背景

在编写Markdown文档时,常常会使用图床存放Image文件。 综合考虑,选用github。 在使用过程中,添加图片、提交、复制链接,重复性工作比较多。 再者,刚刚学习go,为了解其语法特性,写点简单的东西来练练手。

基本功能
  • 图片展示。点击图片,自动生成对应格式链接地址到粘贴板
  • 图片上传。支持拖动自动上传
功能说明
版本说明

项目构建

其他环境下,不保证是否能够正常构建。

开发环境
  • win 10
  • go 1.16
前置安装

因网络原因,go get可能会失败。 将对应源码,拷贝到GOPATH中即可。(参考

go get github.com/akavel/rsrc
go get github.com/lxn/win
go get github.com/lxn/walk
构建过程

可查看walk具体说明

  1. 使用rsrc tool,生成*.syso文件(不需重复生成)
    rsrc -manifest main.manifest -o main.syso
    
  2. 构建
    // 调试(运行会有调试窗口)
    go build
    // 正式构建
    go build -ldflags="-H windowsgui"
    
  3. 运行生成的.exe文件

目录结构

gpics
├─ base       基础操作
│  ├─ config 应用配置
│  ├─ git    封装git相关命令
│  └─ img    读取Image资源
│ 
├─ windows    窗口构建相关
│ 
├─ main.go 
│  

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
git
img

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL