Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
ojizero 1ec2869b66 Initial release 10 meses atrás
.github/workflows Initial release 10 meses atrás
.gitignore Initial release 10 meses atrás
LICENSE Initial release 10 meses atrás
README.md Initial release 10 meses atrás
findup.go Initial release 10 meses atrás
findup_test.go Initial release 10 meses atrás
go.mod Initial release 10 meses atrás
go.sum Initial release 10 meses atrás

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