tpng / gopkgs Goto Github PK
View Code? Open in Web Editor NEWCommand gopkgs list your installed Go packages for import.
License: MIT License
Command gopkgs list your installed Go packages for import.
License: MIT License
The Go extension for Visual Studio Code uses gopkgs
for multiple scenarios and in one of them, it tries to deduce the package name from the import path.
This is successful most of the time, but as you know, the package name is not always the same as the directory name in the import path.
Can gopkgs
be modified to return the package name along with the package import path?
May be take a flag and return both name and path if the flag is set?
I am not seeing subpackages included in the gopkgs
command that are seen with the go list all
command.
I ran into this using VSCode and opened an issue with them (microsoft/vscode-go#521); it appears they leverage gopkgs
.
I created a repo to illustrate the issue I was facing with VSCode here: https://github.com/sethgrid/vscode_autocomplete_issue
I believe that it should show a repro case for gopkgs
too. When I cd
into that directory, and do gopkgs | grep sethgrid
, I do not see subone
or subtwo
. However, I do see those if I go list all | grep sethgrid
.
Benny, can you add a license file to your repo? Thanks!
Hi there, I'm trying to better understand the purpose of this command.
From the README:
It aims to provide a faster alternative to "go list all" to list available packages for import.
Are there any benchmarks comparing the performance?
Assuming it's faster, how does it achieve that, and what's the reason such an optimization could be not sent upstream into cmd/go
so that go list all
is equally fast?
Thanks!
Hi,
when compiling (dev-tag NOT set) the generated file I receive an error:
assets_vfsdata.go:28:2: mustUnmarshalTextTime declared and not used
This is my assets.go which triggers the generation:
//go:generate vfsgendev -source="gitlab.com/eBeyond/tumblr-archiver/data".Assets
// +build dev
package data
import "net/http"
// Assets contains project assets.
var Assets http.FileSystem = http.Dir("assets")
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.