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 01c9ea7079 update env var used goreleaser il y a 7 mois
.github/workflows update env var used goreleaser il y a 7 mois
cmd add goreleaser package il y a 7 mois
.gitignore add goreleaser package il y a 7 mois
.goreleaser.yml add goreleaser package il y a 7 mois
LICENSE Initial release il y a 11 mois
README.md added tests badge il y a 7 mois
findup.go correctly return error if it's from Getwd il y a 10 mois
findup_test.go fixed API making it reasonable :D il y a 11 mois
go.mod add basic CLI for package il y a 7 mois
go.sum add basic CLI for package il y a 7 mois

README.md

Go Find Up

GoDoc Run tests

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.FindupFrom("some-file-or-directory", "some-starting-directory")