MCPcopy Index your code
hub / github.com/betacraft/easytags

github.com/betacraft/easytags @v1.0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.2 ↗ · + Follow
15 symbols 41 edges 3 files 3 documented · 20% updated 6y agov1.0.2 · 2019-05-31★ 75

Browse by type

Functions 12 Types & classes 3
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

easytags

Easy json/xml Tag generation tool for golang

Build Status

We generally write Field names in CamelCase (aka pascal case) and we generally want them to be in snake case (camel and pascal case are supported as well) when marshalled to json/xml/sql etc. We use tags for this purpose. But it is a repeatative process which should be automated.

usage :

easytags {file_name} {tag_name_1:case_1, tag_name_2:case_2}

example: easytags file.go

You can also use this with go generate For example - In your source file, write following line

go:generate easytags $GOFILE json,xml,sql

And run

go generate

This will go through all the struct declarations in your source files, and add corresponding json/xml/sql tags with field name changed to snake case. If you have already written tag with "-" value, this tool will not change that tag.

Now supports Go modules.

Screencast with Go Generate

Core symbols most depended-on inside this repo

Shape

Function 12
Struct 3

Languages

Go100%

Modules by API surface

easytags.go7 symbols
easytags_test.go6 symbols
testfile.go2 symbols

For agents

$ claude mcp add easytags \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page