Re: [go-nuts] return own custom error from template while it executed

2021-01-15 Thread Shulhan



14 Jan 2021 17:32:37 Vasiliy Tolstov :


Hi. I can't find in google how to solve my problem. Inside
text/template i want to check some passed data and return some
descriptive text if conditions not matching.
I don't have ability to check it before template executed. Does it 

possible?




I am not sure your exact problem. So, you have a function that accept 
data and you want to check the data before passing it to template 
execution? Why you can not check it before template executed?


--
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/cf99443a-9571-4e9e-90a1-5f2e37d7b75f%40gmail.com.


[go-nuts] return own custom error from template while it executed

2021-01-14 Thread Vasiliy Tolstov
Hi. I can't find in google how to solve my problem. Inside
text/template i want to check some passed data and return some
descriptive text if conditions not matching.
I don't have ability to check it before template executed. Does it possible?

-- 
Vasiliy Tolstov,
e-mail: v.tols...@selfip.ru

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CACaajQuGhatY-vr-DoQ37t-bNHbaVC8f%2B-gJHiqqFKqgMxjRgg%40mail.gmail.com.