github.com/zooyer/miskit@v1.0.71/log/stat_test.go (about)

     1  package log
     2  
     3  import (
     4  	"os"
     5  	"testing"
     6  )
     7  
     8  func TestStat_CreateTime(t *testing.T) {
     9  	info, err := os.Stat("./stat.go")
    10  	if err != nil {
    11  		t.Fatal(err)
    12  	}
    13  	t.Log(fileInfo(info).CreateTime())
    14  }