Skip to content

alexcoder04/ef

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages