Skip to content

Instantly share code, notes, and snippets.

@dasheyuan
dasheyuan / doc_add_note.py
Last active September 10, 2021 06:17
doc_add_note.py
# -*- coding: UTF-8 -*-
import time
import win32com.client
from docx import Document
import os
dirpath = ''
# 参考 https://pythonmana.com/2021/05/20210526234604256g.html
def docx_add_note(path):
#!/bin/bash
###
### my-script — does one thing well
###
### Usage:
### my-script <input> <output>
###
### Options:
### <input> Input file to read.
### <output> Output file to write. Use '-' for stdout.
@dasheyuan
dasheyuan / README.md
Last active July 13, 2020 02:24
kratos框架加载api.swagger.json发布的方式

简介

加载api.swagger.json文件,与程序整合一起发布,提高开发新接口时与前端沟通的效率。

使用步骤

1.安装packr.v2 参考

$ go get -u github.com/gobuffalo/packr/v2/...

$ go get -u github.com/gobuffalo/packr/v2/packr2

2.添加docs/docs.go