pkgconcat

command
Version: v0.0.0-...-a7167af Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 18 Imported by: 0

README

pkgconcat

pkgconcat is a simple tool that concatenates the contents of a package into a single file

go get -u myitcv.io/cmd/pkgconcat

Used with its -out flag, pkgconcat can effectively act as a code generator, where the directory/import path is a "template":

//go:generate gobin -m -run myitcv.io/cmd/pkgconcat -out gen_cliflag.go myitcv.io/_tmpls/cliflag

Usage

Usage:

  pkgconcat [directory/import path]

pkgconcat takes an optional single argument that is a directory or an import
path. A directory is indicated by being an absolute path; anything else is
treated as an import path.
Flags:
  -out string
    	path to which to write output; if not specified STDOUT is used
  -outpkgname string
    	name of package to output; if not specified take the package name of the
    	input directory/import path

Documentation

Overview

pkgconcat is a simple tool that concatenates the contents of a package into a single file

Jump to

Keyboard shortcuts

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