Module github.com/go-maxhub/kit@latest found (v0.2.1), but does not contain package github.com/go-maxhub/kit

Wrote lib github.com/go-maxhub/kit
usage start with
kit.New(...)
when i import it like this

package main

import (
	"github.com/go-maxhub/kit"
)

func main() {
	_ = kit.New()}

goland returns error
github.com/go-maxhub/kit: module github.com/go-maxhub/kit@latest found (v0.2.1), but does not contain package github.com/go-maxhub/kit
what i do wrong?

"github.com/go-maxhub/kit" is the projects’ root folder. As I see on GitHub, in root there is another kit folder, which contains function which you are trying to run. Thus, the path should be "github.com/go-maxhub/kit/kit". It fixes package download.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.