tmpl

module
v0.0.0-...-39a0747 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: MIT

README

tmpl

GoDoc Go Report Card CI License

A production-ready Go project template with CI/CD, testing, and build tooling.

built by rizome labs | contact: hi@rizome.dev

Quick Start

# Use this template on GitHub
# 1. Click "Use this template" button
# 2. Create your new repository
# 3. Clone your new repo

# Bootstrap your project
cd your-new-repo
just bootstrap github.com/yourusername/yourproject cli

# Set up development tools
make setup

# Build and test
make build
make test

Bootstrap Options

just bootstrap                                    # Uses defaults (CLI project)
just bootstrap github.com/user/myproject          # Custom module name
just bootstrap github.com/user/myproject library  # Library project
just bootstrap github.com/user/myproject api      # API server project

Project types:

  • cli - Command-line application
  • library - Go library package
  • api - HTTP API server
  • sharedlib - Shared C library (.so/.dylib)

Development

# Install tools
make setup

# Build
make build

# Test
make test

# Lint
make lint

# All checks
make ci

Features

  • Go 1.23.4 with modern project structure
  • GitHub Actions CI/CD pipeline
  • golangci-lint with comprehensive rules
  • Multiple project types supported
  • Cross-platform builds (Linux, macOS, Windows)
  • Shared C library support
  • Docker build support

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT License - see the LICENSE file for details.

Directories

Path Synopsis
cmd
example command
Package main implements the example CLI application.
Package main implements the example CLI application.
internal
version
Package version provides build version information.
Package version provides build version information.
pkg
example
Package example provides a sample library structure for the tmpl project.
Package example provides a sample library structure for the tmpl project.
Package main provides a shared library for signing and verification.
Package main provides a shared library for signing and verification.

Jump to

Keyboard shortcuts

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