rmvtag

package module
v0.0.0-...-713fe26 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 12 Imported by: 0

README

tagit

Overview -- tagit is a multi-tool project that consists of three primary tools. proptag will read go source files and generate getters and/or setters for basic variable and field types or tags can be configured to generate functions that require a Set or Get method on more complicated user defined types. tags for this tool look like this: // (open and close blocks of variables or fields) or // at the end of a line to affect that line only. rmvtag will comment out, uncomment or remove source code lines tagged with the appropriately configured tags as so: , for blocks, or for lines. A couple of examples; first proptags:

  	var intvar int //<pg/> makes the unexported
	// variable intvar accessible to outside code 
  	// as a read-only property.
  	type myType struct {
  		// requires myType to have both Get() and
		// Set(structType) methods
  		fld structType //<pGS/>
  	}

Documentation

Index

Constants

View Source
const (
	CommentString   = "//"
	LineTag         = "<rmv/>"
	OpenTag         = "<rmv>"
	CloseTag        = "</rmv>"
	RegionTagPat    = `<rgn[[:blank:]]+_*[a-zA-Z0-9]+/?>`
	DefaultRangeLen = 20
)

Variables

This section is empty.

Functions

func Run

func Run(m *msg.Messenger) int

func ShowHelp

func ShowHelp(w io.Writer, command ...string)

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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