github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/talks/2014/compiling/const2.go (about)

     1  // +build ignore
     2  
     3  package main
     4  
     5  import "fmt"
     6  
     7  // 1 START OMIT
     8  const C1 = 1e+308
     9  const C2 = C1 * 10
    10  const C3 = C2 / 10
    11  
    12  var V1 = C1
    13  var V2 = V1 * 10
    14  var V3 = V2 / 10
    15  
    16  func main() {
    17  	fmt.Println(C3, V3)
    18  }
    19  
    20  // 1 END OMIT