Discover Packages
github.com/JamesTiberiusKirk/go-template
package
module
Version:
v0.1.4
Opens a new window with list of versions in this module.
Published: Feb 7, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
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:
Expand ▾
Collapse ▴
Documentation
¶
Code generated by dotembed. DO NOT EDIT.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.