Skip to content

take a look at my enhancements #20

Description

@slinso

Hi @benbjohnson,

could you please take a look at my fork (https://github.com/SlinSo/egon), that is unfortunately based on another fork (https://github.com/commondream/egon). I would like to know, if it is worth to rebase everything to your original version of ego.

I've made this fork after playing around with some bechmarks I made (https://github.com/SlinSo/goTemplateBenchmark)

I've added a few features and optimisations:

  • Added flags to the egon command (based on kingpin package)
  • Added type safe generation like in ftmpl
  • Added Debug mode, otherwise dont print comments inside generated functions
  • Added string optimisation, removed Sprintf for strings
  • Added examples for framework integration
  • Added minify, currently only tested with HTML code
  • Added optional view generation (only needed for egon fork)
  • Reverted fmt.Fprintf -> io.WriteString to avoid unnecessary allocations (only needed for egon fork)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions