gotemplate

package module
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

THIS IS FORKED TO ADAPT MY OWN TEMPLATE

I created my own template and was going to make some interactive cli....I quickly realised its quite painful todo so and I found this amazingly written tool. So I cannibalised it for my own template. Please go and checkout the original template and its maintainers.

To install my version:

go install github.com/JamesTiberiusKirk/go-template/cmd/gt@latest

To use my version

gt new # then follow the instructions

The original repo for my template/framework

My repo

Development

  • This assumes that the repo for the original template is located at ../go_web_template
  • Use the ./convert_template.sh script in order to copy over the template repo and delete unnecessary files/folders
    • That will just copy over ../go_web_template to _template
    • Cleanup stuff that we don't want to shit like docker mount points
    • Then finally there are a couple of sed commands witch replace the module name and the actual name with golang templating variables
      • Note: I'm using custom delims for the templating because my go template is using http templating with the standard delims
      • Custom delims being {{{ and respectively }}}

Original maintainers and project

The repo itself

The Maintainers:

Name Email
@brumhard code@brumhard.com
@linuxluigi steffen.exler@mail.schwarz
@danielzwink daniel.zwink@mail.schwarz

Documentation

Overview

Code generated by dotembed. DO NOT EDIT.

Index

Constants

View Source
const Key = "_template"

Variables

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
_template
cmd
gt
pkg

Jump to

Keyboard shortcuts

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