Examples using... math.Hypot()

Recent
Print, Println, and Printf lay out their arguments differently. In this example we can compare their behaviors. Println always adds blanks between the items it prints, while Print adds blanks only between non-string arguments and Printf does exactly what it is told. Sprint, Sprintln, Sprintf, Fprint...
This example shows how to encode an interface value. The key distinction from regular types is to register the concrete type that implements the interface.