Skip to content

leeychee/gowrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

go get github.com/leeychee/gowrap

Usage

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

About

Wrap string in go string format.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages