Posts Tagged ‘import statement’



This code groups the imports into a parenthesized, “factored” import statement. You can also write multiple import statements, like:

	import "fmt"
	import "math"

but it’s common to use the factored form to eliminate clutter.

Example :

package main

import (

func main() {
fmt.Printf(“Now you have %g problems.”,
math.Nextafter(2, 3))


Now you have 2.0000000000000004 problems.