|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/spf13/afero/rclonefs"
|
|
)
|
|
|
|
func main() {
|
|
RFS, _ := rclonefs.CreateRCFS("godrive1:")
|
|
|
|
data, err := RFS.ReadFile("mock.json")
|
|
if err != nil {
|
|
fmt.Printf("Error: %v\n", err)
|
|
os.Exit(1)
|
|
}
|
|
|
|
fmt.Printf("%s\n", string(data))
|
|
}
|