3.golang 的注释

package main

import (
	"fmt"
	"math"
)

func main() {
	fmt.Println(pi(5000))
}

// pi launches n goroutines to compute an    go的注释是双下划线
// approximation of pi.

  行注释

        //

  块注释

  /*

       */

  块注释中不允许嵌套块注释

原文地址:https://www.cnblogs.com/leleyao/p/11536687.html