github.com/gogf/gf@v1.16.9/.example/os/glog/glog_line2.go (about)

     1  package main
     2  
     3  import (
     4  	"github.com/gogf/gf/frame/g"
     5  )
     6  
     7  func PrintLog(content string) {
     8  	g.Log().Skip(0).Line().Println("line number with skip:", content)
     9  	g.Log().Line(true).Println("line number without skip:", content)
    10  }
    11  
    12  func main() {
    13  	PrintLog("just test")
    14  }