The Central Go Modules Repository

To use GoCenter:
export GOPROXY=https://gocenter.io
0
Stars
UNKNOWN
License
14
Downloads
January 1st 0001
Last Modified
Version:
Loading...

Pathfinder

GoDoc

Pathfinder is a small library to find where your go code is located, for finding assets or whatnot.

	go get bitbucket.org/abex/pathfinder

 

	import "bitbucket.org/abex/pathfinder"

Example

package main

import (
	"net/http"
	"bitbucket.org/abex/pathfinder"
)

func main(){
	www, err := pathfinder.FindDir("bitbucket.org/abex/test", "www")
	if err != nil {
		panic(err)
	}
	http.Handle("/",http.FileServer(http.Dir(www)))
	panic(http.ListenAndServe(":80",nil))
}