项目作者: leeychee

项目描述 :
Wrap string in go string format.
高级语言: Go
项目地址: git://github.com/leeychee/gowrap.git
创建时间: 2017-07-27T05:34:12Z
项目社区:https://github.com/leeychee/gowrap

开源协议:

下载


Wrap string in Go string format

Sometimes, we need to write a long string with ` and " in go source file.
But it’s a little complex to code this.

This is a simple tool for generate this. enjoy it.

Install

  1. go get github.com/leeychee/gowrap

Usage

  1. # example
  2. cat origin.txt | gowrap -p main -v varname > var.go