Skip to content

Is it possible to update Renderer once server started? #2304

Answered by aldas
barraganlazlo asked this question in Q&A
Discussion options

You must be logged in to vote

You can but you need to create wrapper that implements Render interface that allows changing it internals in goroutine safe way. In this was you would not have to change e.Renderer or c.Echo.Render instance and cause potential race condition.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by barraganlazlo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants