afero/rclonetest/main.go

21 lines
277 B
Go

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))
}