:runner:runs go generate recursively on a specified path or environment variable and can filter by regex

Package generate

Build Status Go Report Card GoDoc

Package generate runs go generate recursively on a specified path or environment variable like $GOPATH and can filter by regex

Why would I use it?

When ready to compile your application, you may need to do a bunch of setup, run some scripts or even embed static resources and instead of programming that all into a build script just add all that into //go:generate statements then run this to recursively go through and run all the setup for you.

Why was it created?

To be the best friend of https://github.com/go-playground/statics which automatically embeds the go:generate statement that embeds the static resources, but it could be used for anything.

Installation

Use go get.

go get github.com/go-playground/generate

or to update

go get -u github.com/go-playground/generate

Then import the generate package into your own code.

import "github.com/go-playground/generate"

Usage and documentation

Please see https://godoc.org/github.com/go-playground/generate for detailed usage docs.

Example Usage

  • NOTE: this would be from a bash prompt, hence the escaping

generate -i=$GOPATH -ignore=/\. -match=/github.com/MyOrganizationOrUser

run generate -h for all options

License

Distributed under MIT License, please see license file in code for more details.

Owner
Go Playgound
multiple packages, libraries and programs to further the advancement of Go!
Go Playgound
Similar Resources

Filter out multiple strings from stdin.

minus The minus tool accepts data from stdin and filters out any arguments passed. It simplifies something like this: some_command | grep -vF thing1 |

Dec 20, 2021

Easy environment variables for Go

env Easy environment variables for Go Usage import "github.com/darkhelmet/env" ... s := env.String("USER") // Will panic if USER is not present sd :

Dec 21, 2018

Load environment variables from `.env` or `io.Reader` in Go.

gotenv Load environment variables from .env or io.Reader in Go. Usage Put the gotenv package on your import statement: import "github.com/subosito/got

Dec 30, 2022

Don't get surprised by your environment variables.

checkenv Don't get surprised by your environment variables. Rationale At Bugout, we configure our applications using environment variables. This follo

Dec 20, 2021

Manage internal technical documentation that is enriched with live data accreted from your environment.

Manage internal technical documentation that is enriched with live data accreted from your environment.

Jan 3, 2023

A simple Cron library for go that can execute closures or functions at varying intervals, from once a second to once a year on a specific date and time. Primarily for web applications and long running daemons.

Cron.go This is a simple library to handle scheduled tasks. Tasks can be run in a minimum delay of once a second--for which Cron isn't actually design

Dec 17, 2022

Go package and associated command line utility to generate random yet human-readable names and identifiers

Go package and associated command line utility to generate random yet human-readable names and identifiers

namegen | What's this? Go package and associated command line utility to generate random yet human-readable names and identifiers. Somewhat inspired b

Oct 19, 2022

Go-keymap - Generate keymap.c, layers.h and keymap.svg from visual keymaps defined through keymaps.json and .layer files

Go-keymap - Generate keymap.c, layers.h and keymap.svg from visual keymaps defined through keymaps.json and .layer files

generating keymap.c This utility can generate a keymap.c, layers.h and keymap.sv

Feb 15, 2022

Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.

Advent of Code 2021 Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved

Dec 2, 2021
Nodebook - Multi-Lang Web REPL + CLI Code runner
Nodebook - Multi-Lang Web REPL + CLI Code runner

nodebook Nodebook - Multi-Language REPL with Web UI + CLI code runner Useful to practice algorithms and datastructures for coding interviews. What is

Dec 29, 2022
K3ai Executor is the runner pod to execute the "one-click" pipelines
K3ai Executor is the runner pod to execute the

Welcome to K3ai Project K3ai is a lightweight tool to get an AI Infrastructure Stack up in minutes not days. NOTE on the K3ai origins Original K3ai Pr

Nov 11, 2021
Go-based submission runner for canvas submissions

Submission Runner How To Use Make sure you have golang installed Add a folder in this root directory for a project. This folder will include: submissi

Feb 11, 2022
[TOOL, CLI] - Filter and examine Go type structures, interfaces and their transitive dependencies and relationships. Export structural types as TypeScript value object or bare type representations.

typex Examine Go types and their transitive dependencies. Export results as TypeScript value objects (or types) declaration. Installation go get -u gi

Dec 6, 2022
Report unwanted import path and declaration usages
Report unwanted import path and declaration usages

faillint Faillint is a simple Go linter that fails when a specific set of import paths or exported path's functions, constant, vars or types are used.

Dec 28, 2022
A limited Flow Access API which runs outside of the Flow Network using the DPS

Access API Flow DPS implements the Flow Access API Specification, except for the following endpoints: SendTransaction GetLatestProtocolStateSnapshot G

Jul 28, 2022
Terraform Provider for cascading runs across multiple workspaces.

Terraform Multispace Provider The multispace Terraform provider implements resources to help work with multi-workspace workflows in Terraform Cloud (o

Oct 25, 2022
Initiate Chainlink job runs from external sources.

External Initiator Initiate Chainlink job runs from external sources. Installation go install Configuration Environment variables Key Description Exam

Sep 12, 2022
An experimental distribution of Temporal that runs as a single process

Temporalite ⚠️ This project is experimental and not suitable for production use. ⚠️ Temporalite is a distribution of Temporal that runs as a single pr

Dec 31, 2022
An HTTP service for customizing import path of your Go packages.

Go Packages A self-host HTTP service that allow customizing your Go package import paths. Features Reports. Badges. I18N. Preview I launch up a free H

Nov 27, 2022