This is not a function, but a method. In this case, it adds the MarshalJSON method to the version structure type.
v is the name for the value received (and will be similar to that in the Java method or in the Python kernel), the version indicates the type to which we add the method.
For details, see as an example for example, as well.
source
share