Case 2: Assigning a value to a field of an object

In the following example, the Foo struct accepts a Float64 field. When the field is assigned a value of 2, it is converted to 2.0:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.14.168.56