Wenbo Han
Wenbo Han
Reference: If needed, we can consider adding `arr.GetMap` or `map.Get`. Do you have any idea about this?
Yes, I think it's ok. We also can use a third package if we need it, like: https://github.com/gookit/goutil, or other, if there are methods that don't exist in the third...
Thanks, just two tips: 1. We can move ErrInvalidKey to the errors.go file; 2. Set method also needs to use Generics;
It's fine now, let's look more at the formal PR.
Hi @dragoonchang I wonder if you are still working on this issue, please?
@dragoonchang has something to do, feel free to pick up this issue if any guys are interested, there is a draft PR: https://github.com/goravel/framework/pull/97
Can we use [Custom Validation Rules](https://www.goravel.dev/the-basics/validation.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E9%AA%8C%E8%AF%81%E8%A7%84%E5%88%99) to deal with this?
Yes, I think so. Maybe we can do a layer of special handling when passing `regex`: Change `regex` in the validate string to `v.AddRule("name", "regex", "^(PCAP|DOC)$")`?
Could you please check [this list](https://laravel.com/docs/10.x/collections#available-methods) and pick up some useful methods that can be implemented by Golang? They can be implemented in multiple PRs.
Sorry, what's the meaning of `the callback is called as a goroutine`?