Giter Site home page Giter Site logo

gopkgs's People

Contributors

aleksi avatar m0a avatar nanjj avatar tpng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gopkgs's Issues

Missing subpackages

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.

Feature Request to add option to return package name as well

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?

Document case when it doesn't work

gopkgs does not work correctly when package directory (equal to last part of import path) is different from package name (from package clause). I think that should be documented explicitly, without requiring a reader to make a conclusion from the last paragraph of README.

Related to #3, #5.

What's the principle of operation?

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!

ignore me

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")

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.