Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
ojizero 1ec2869b66 Initial release pirms 10 mēnešiem
.github/workflows Initial release pirms 10 mēnešiem
.gitignore Initial release pirms 10 mēnešiem
LICENSE Initial release pirms 10 mēnešiem
README.md Initial release pirms 10 mēnešiem
findup.go Initial release pirms 10 mēnešiem
findup_test.go Initial release pirms 10 mēnešiem
go.mod Initial release pirms 10 mēnešiem
go.sum Initial release pirms 10 mēnešiem

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