adharshmk96 / stk

Server tool kit - framework for developing server in golang
MIT License
2 stars 0 forks source link

feat: static path and static dir default config added, updated template rendering. stk template updated. #72

Closed adharshmk96 closed 11 months ago

adharshmk96 commented 11 months ago

default config / custom config for static dir and path. template rendering support updated ( with default configs available as .Config and user variables as .Var ) stk template updated with a template rendering route. trailing "/" will be removed by the router.

closes #70

codecov[bot] commented 11 months ago

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (0bf8f9f) 86.32% compared to head (b400b29) 86.35%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #72 +/- ## ========================================== + Coverage 86.32% 86.35% +0.02% ========================================== Files 22 22 Lines 1024 1048 +24 ========================================== + Hits 884 905 +21 - Misses 98 100 +2 - Partials 42 43 +1 ``` | [Files](https://app.codecov.io/gh/adharshmk96/stk/pull/72?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Adharsh+M) | Coverage Δ | | |---|---|---| | [gsk/config.go](https://app.codecov.io/gh/adharshmk96/stk/pull/72?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Adharsh+M#diff-Z3NrL2NvbmZpZy5nbw==) | `100.00% <100.00%> (ø)` | | | [gsk/context.go](https://app.codecov.io/gh/adharshmk96/stk/pull/72?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Adharsh+M#diff-Z3NrL2NvbnRleHQuZ28=) | `95.23% <100.00%> (ø)` | | | [gsk/routegroup.go](https://app.codecov.io/gh/adharshmk96/stk/pull/72?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Adharsh+M#diff-Z3NrL3JvdXRlZ3JvdXAuZ28=) | `100.00% <100.00%> (ø)` | | | [gsk/server.go](https://app.codecov.io/gh/adharshmk96/stk/pull/72?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Adharsh+M#diff-Z3NrL3NlcnZlci5nbw==) | `89.23% <100.00%> (+0.52%)` | :arrow_up: | | [gsk/template.go](https://app.codecov.io/gh/adharshmk96/stk/pull/72?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Adharsh+M#diff-Z3NrL3RlbXBsYXRlLmdv) | `81.25% <100.00%> (+8.52%)` | :arrow_up: | | [pkg/project/boilerplate.go](https://app.codecov.io/gh/adharshmk96/stk/pull/72?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Adharsh+M#diff-cGtnL3Byb2plY3QvYm9pbGVycGxhdGUuZ28=) | `63.44% <50.00%> (-0.93%)` | :arrow_down: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

adharshmk96 commented 11 months ago

updated template alongside this closes #57