Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add more template function to generator context #81

Merged
merged 5 commits into from
Feb 7, 2022

Conversation

gabyx
Copy link
Contributor

@gabyx gabyx commented Feb 1, 2022

I added a gsub function which is really handy to replace certain stuff and add
urls etc...

HashURL is mostly nonsensical in non Github contexts...

Thanks for merging.

@gabyx
Copy link
Contributor Author

gabyx commented Feb 1, 2022

I added a global regexCache instead. See Diff to not compile always the regex...

4_generator.go Outdated Show resolved Hide resolved
@gabyx gabyx changed the title Add gsub function to generator context Add more template function to generator context Feb 3, 2022
@gabyx gabyx force-pushed the feature/add-gsub-function branch 2 times, most recently from b8a73f7 to d66f0d4 Compare February 3, 2022 23:59
go.mod Outdated Show resolved Hide resolved
4_generator.go Show resolved Hide resolved
@axetroy axetroy changed the title Add more template function to generator context feat: Add more template function to generator context Feb 7, 2022
@axetroy axetroy merged commit c02be24 into release-lab:master Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants