You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 562B

10 months ago
123456789101112131415161718192021222324252627
  1. # Go Find Up
  2. > Find a file or directory by walking up parent directories.
  3. ## Usage
  4. Install latest version
  5. ```sh
  6. go get github.com/ojizero/gofindup
  7. ```
  8. Import it into your code
  9. ```go
  10. import "github.com/ojizero/gofindup"
  11. ```
  12. This package only exposes 2 functions, `Findup` and `FindupFrom`,
  13. ```go
  14. // looks the file recursively in parents starting from "./"
  15. gofindup.Findup("some-file-or-directory")
  16. // looks the file recursively in parents starting from "./some-starting-directory"
  17. gofindup.Findup("some-file-or-directory", "some-starting-directory")
  18. ```