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.
Ameer A 626dd4448f
Merge pull request #1 from ojizero/test-matrix
il y a 3 mois
.github/workflows corrected strategy placement il y a 3 mois
cmd add goreleaser package il y a 4 mois
.gitignore add goreleaser package il y a 4 mois
.goreleaser.yml add goreleaser package il y a 4 mois
LICENSE Initial release il y a 7 mois
README.md added tests badge il y a 4 mois
findup.go remote usage of afero from main package to reduce binary output size il y a 4 mois
findup_test.go remote usage of afero from main package to reduce binary output size il y a 4 mois
go.mod add basic CLI for package il y a 4 mois
go.sum remote usage of afero from main package to reduce binary output size il y a 4 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")