Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestNoFixedSize (0.16 sec)

  1. src/encoding/binary/binary_test.go

    		want := fmt.Sprintf("binary.Read: invalid type %T", dst)
    		if err == nil || err.Error() != want {
    			t.Fatalf("for type %T: got %q; want %q", dst, err, want)
    		}
    	}
    }
    
    func TestNoFixedSize(t *testing.T) {
    	type Person struct {
    		Age    int
    		Weight float64
    		Height float64
    	}
    
    	person := Person{
    		Age:    27,
    		Weight: 67.3,
    		Height: 177.8,
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:16:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
Back to top