You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ojizero 1ec2869b66 Initial release пре 10 месеци
.github/workflows Initial release пре 10 месеци
.gitignore Initial release пре 10 месеци
LICENSE Initial release пре 10 месеци
README.md Initial release пре 10 месеци
findup.go Initial release пре 10 месеци
findup_test.go Initial release пре 10 месеци
go.mod Initial release пре 10 месеци
go.sum Initial release пре 10 месеци

README.md

Go Find Up

Find a file or directory by walking up parent directories.

Usage

Install latest version

go get github.com/ojizero/gofindup

Import it into your code

import "github.com/ojizero/gofindup"

This package only exposes 2 functions, Findup and FindupFrom,

// looks the file recursively in parents starting from "./"
gofindup.Findup("some-file-or-directory")

// looks the file recursively in parents starting from "./some-starting-directory"
gofindup.Findup("some-file-or-directory", "some-starting-directory")