I have created a library by the name libfastget
which is in the src
with my program as
src
|-libfastget
| |-libfastget.go
|
|-MainPro
you would need to make your function exportable with an uppercase for its name:
func Fastget(...
Used as:
n:=libfastget.Fastget(url,4,filename)
The spec mentions: "Exported identifiers":
An identifier may be exported to permit access to it from another package. An identifier is exported if both:
Lu
"); andAll other identifiers are not exported.