Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
ojizero 1ec2869b66 Initial release il y a 10 mois
.github/workflows Initial release il y a 10 mois
.gitignore Initial release il y a 10 mois
LICENSE Initial release il y a 10 mois
README.md Initial release il y a 10 mois
findup.go Initial release il y a 10 mois
findup_test.go Initial release il y a 10 mois
go.mod Initial release il y a 10 mois
go.sum Initial release il y a 10 mois

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