Alex Collins

Results 470 comments of Alex Collins

could it be optional? E.g `expr.TypeConvertors()` In Golang, I think there are only so many conversions you can do. One challenge is if the casting was not sensible due to...

```golang var castErr error // stash any casting error here replaceMap["int"] = func(s string) int { v, err := strconv.Atoi(s) if err != nil { castErr = fmt.Errorf("failed to cast...

One solution to this might be for users to add the Sprig functions. They have a big library and it seems to work nicely: http://masterminds.github.io/sprig/conversion.html There are security issues with...

Will that contain CPU usage too? Will it time-bound evaluation?

But perhaps timeout of 1s would prevent much memory usage.

Surely map is loop?

So you think time-bounding and CPU bounding are not needed?

@crenshaw-dev I think we should probably exclude expensive function from `spig.` by default. Or more explicitly, we only opt in. I'll create a ticket.

What about `RunWithContext` like we have `http.NewRequest` and `http.NewRequestWithContext`. Lack of timeout enables DDoS attacks.

"wolf"? 🐺