Git Product home page Git Product logo

coolq-golang-plugin's Introduction

一个酷Q插件

这里是你用Go开发酷Q插件的起点

开始

赶快点击右上角的Use this template绿色按钮开始吧! 用本模板新建一个项目(到你自己的Github账号上),然后将你的项目克隆至本地。 或者直接下载本模板项目。

安装环境

  1. Go语言编译器
  2. gcc编译器

启动酷Q的开发者模式

请查看酷Q官方的文档

修改路径

要修改的地方有几处:

  1. go.mod文件第一行,改为你自己项目的地址
  2. app.go文件main函数前// cqp:开头的注释,修改名称、版本、作者和简介
  3. app.go文件init函数内,修改你的AppID
  4. 若需要自动复制文件,请设置环境变量DevDir为目的目录。

编译

运行build.bat

关于交叉编译,我制作了可以在Linux和macOS上构建插件的Docker镜像:coolq-golang-builder

最后,在酷Q的菜单-应用管理中,点击重载应用,你应该就能看到你的插件了。

coolq-golang-plugin's People

Contributors

baimeow avatar tnze avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

coolq-golang-plugin's Issues

关于cqp注释 的 菜单

SDK 的工具那边更新了 // cqp: 菜单:
但是模板文件并没有更新使用方法。。
那玩意有什么用,他的格式怎么写?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.