folder structure:
- myproject
- resolver
- resolver.go
- main.go
go mod init github.com/kaleabbyh/foodrecipie
resolver.go:
package resolvers
import "fmt"
func resolverfunc(){
fmt.Println("resolvers are running")
}
main.go:
package main
import (
"fmt"
"github.com/kaleabbyh/foodrecipie/resolvers"
)
func main(){
resolvers.resolverfunc()
fmt.Println("main is running")
}
I try to do just like the above details but it returns me
no required module provides package "github.com/kaleabbyh/foodrecipie/resolvers"