github.com/aarzilli/tools@v0.0.0-20151123112009-0d27094f75e0/os/fsi/osfs/0-init.go (about)

     1  // Package osfs provides access to the file system
     2  // of the OS; merely wrapping os and ioutil
     3  package osfs
     4  
     5  import (
     6  	"os"
     7  
     8  	"github.com/pbberlin/tools/os/fsi"
     9  )
    10  
    11  func init() {
    12  
    13  	// forcing our implementations
    14  	// to comply with our interfaces
    15  
    16  	f := os.File{}
    17  	ifa := fsi.File(&f)
    18  	_ = ifa
    19  
    20  	var fi os.FileInfo
    21  	ifi := os.FileInfo(fi) // of course idiotic, but we keep the pattern
    22  	_ = ifi
    23  
    24  	fs := osFileSys{}
    25  	ifs := fsi.FileSystem(&fs)
    26  	_ = ifs
    27  
    28  }