feat(server,module): add cast module
This commit is contained in:
@ -145,7 +145,7 @@ func (s *Server) Stop() {
|
||||
func (s *Server) initModules(factories ...ServerModuleFactory) {
|
||||
runtime := goja.New()
|
||||
|
||||
runtime.SetFieldNameMapper(goja.UncapFieldNameMapper())
|
||||
runtime.SetFieldNameMapper(goja.TagFieldNameMapper("goja", true))
|
||||
runtime.SetRandSource(createRandomSource())
|
||||
|
||||
modules := make([]ServerModule, 0, len(factories))
|
||||
|
Reference in New Issue
Block a user