Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Go Modules #1

Closed
qcrao opened this issue Apr 6, 2020 · 2 comments · Fixed by #2
Closed

Support Go Modules #1

qcrao opened this issue Apr 6, 2020 · 2 comments · Fixed by #2
Assignees
Labels
enhancement New feature or request

Comments

@qcrao
Copy link
Member

qcrao commented Apr 6, 2020

package main

import "github.com/cch123/goroutineid"

func main() {
    id := goroutineid.GetGoID()
    println(id) // 1
}

输出:

$GOSSAPATH/main.go:3:8: cannot find package "." in:
/app/vendor/github.com/cch123/goroutineid

@changkun changkun self-assigned this Apr 6, 2020
@changkun changkun added the enhancement New feature or request label Apr 6, 2020
changkun added a commit that referenced this issue Apr 6, 2020
changkun added a commit that referenced this issue Apr 6, 2020
@changkun
Copy link
Member

changkun commented Apr 6, 2020

Go Modules is supported now.

See an example here: https://changkun.de/gossa?id=3cf5fa2e-fb54-46d8-97a5-31f8c2604a72

@changkun
Copy link
Member

changkun commented Apr 6, 2020

Note that your code snippet remains to fail because of an issue in cch123/goroutineid#2.

@changkun changkun changed the title 不支持第三方库 Support Go Modules Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants