Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 546 Bytes

README.md

File metadata and controls

40 lines (28 loc) · 546 Bytes

ef

Easy Files - a library that makes working with files in Go enjoyable.

Install

go get github.com/alexcoder04/ef

Use

package main

import (
    ...

    "github.com/alexcoder04/ef
)

func main(){
    f := ef.NewFile("assets", "image.png")
    if !f.Exists {
        println("file does not exist")
        return
    }

    println(f.PathAbs())

    err := f.Copy("new/image.png")
    if err != nil {
        ...
    }
}

Documentation

Please refer to pkg.go.dev.