github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/kbfs/dokan/example_test.go (about)

     1  // Copyright 2016 Keybase Inc. All rights reserved.
     2  // Use of this source code is governed by a BSD
     3  // license that can be found in the LICENSE file.
     4  
     5  package dokan
     6  
     7  import (
     8  	"log"
     9  )
    10  
    11  func ExampleMount() {
    12  	var myFileSystem FileSystem // Should be the real filesystem implementation
    13  	mp, err := Mount(&Config{FileSystem: myFileSystem, Path: `Q:`})
    14  	if err != nil {
    15  		log.Fatal("Mount failed:", err)
    16  	}
    17  	err = mp.BlockTillDone()
    18  	if err != nil {
    19  		log.Println("Filesystem exit:", err)
    20  	}
    21  }