What Is Types Marshaling Among JS and GOLANG Spaces. #599
gastraight
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
Is there any simple 2-3 terms rule that allow. to grasp some general idea behind the types mapping/conversion among
js
andgolang
spaces or is it more like a batch of a lot individual cases?E.g. in particular to cover such questions
js
function() {}
instance is just afunc ()
one ingolang
or could it be as well be an object with a constructor ofFunction
and the methods ofcall
,apply
etc. Could it be just chosen among both cases?Or is there any chance to map something like
someFunc
in the following example intogolang
spacegolang
are just mapped the similarly into respectivejs
primitives?js
hashes
and anyclass instances
mapped to eithermap[string]any
or relatedstruct{}
still is it possible to restrict mapping to fail fromjs
into astruct{}
if there're any extra property exists injs
object that is non presented ingolang
one?js
Symbol
-indexed properties or evenMaps
be mapped into something likemap[any]any
Thank you
Beta Was this translation helpful? Give feedback.
All reactions