### Install GoWrap CLI Source: https://github.com/hexdigest/gowrap/blob/master/README.md Installs the GoWrap command-line interface tool using the go install command. This makes the gowrap executable available in your system's PATH. ```Go go install github.com/hexdigest/gowrap/cmd/gowrap@latest ``` -------------------------------- ### Add GoWrap as a Module Source: https://github.com/hexdigest/gowrap/blob/master/README.md Adds GoWrap as a dependency to your Go project using the go get command. This allows you to use GoWrap's functionality within your Go modules. ```Go go get -u github.com/hexdigest/gowrap/cmd/gowrap ``` -------------------------------- ### Copy gowrap Template Source: https://github.com/hexdigest/gowrap/blob/master/README.md This command fetches a specified template from the gowrap repository and copies it to a local file path. This is useful for version controlling templates or avoiding remote dependencies during code generation. ```Shell gowrap template copy fallback templates/fallback ``` -------------------------------- ### Generate Decorators with Local Template Source: https://github.com/hexdigest/gowrap/blob/master/README.md This command generates Go interface decorators using a local template. It specifies the package, interface, template path, and output file name. ```Go gowrap gen -p io -i Reader -t templates/fallback reader_with_fallback.go ``` -------------------------------- ### Generate Reader with Prometheus Metrics Source: https://github.com/hexdigest/gowrap/blob/master/README.md Generates a Go implementation of the io.Reader interface decorated with Prometheus metrics. This command uses the gowrap CLI tool with specific parameters for package, interface, template, and output file. ```Go gowrap gen -p io -i Reader -t prometheus -o reader_with_metrics.go ``` -------------------------------- ### Generate Fallback Decorator for Connector Source: https://github.com/hexdigest/gowrap/blob/master/README.md Generates a fallback decorator for a Connector interface located in a local subpackage. This demonstrates using a relative path for the package and a specific template for fallback functionality. ```Go gowrap gen -p ./connector -i Connector -t fallback -o ./connector/with_metrics.go ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.