tools icon indicating copy to clipboard operation
tools copied to clipboard

[mirror] Go Tools

Results 106 tools issues
Sort by recently updated
recently updated
newest added

This PR fixes two issues that make using subsections in presentations awkward: * When using position:absolute, H2 section headers all crowd 150px from the bottom of the slide, making the...

cla: yes

errorsas now supports other packages. By default, it checks github.com/pkg/errors and golang.org/x/xerrors, but additional packages can be passed via -pkgs flag. Fixes golang/go#44784

cla: yes

Hello👋 This PR proposes to enable change ssa.BuilderMode on buildssa Analyzer. Since there is currently no way to change `BuilderMode`, I created a public function `CreateRunner` so that it can...

cla: yes

The change suggested is to address the use case, where constants have to be public (capitalized), and the output is expected to be camelCase. The idea is that the flags...

cla: yes

My experimentation shows that `dir/pkg.Type.Method` doesn't work, but `(dir/pkg.Type).Method` does. Looking at https://golang.org/pkg/go/types/#Func.FullName implementation: https://github.com/golang/go/blob/18bcc7c2854f900dfb631d7ef01a839021e24576/src/go/types/object.go#L465-L486 it seems to me that in both cases of pointer and value received the brackets...

cla: yes

There are instances when the diagnostics are reported correctly by the analyzer, but the suggested fixes are wrong, and result in code that cannot be formatted by `format.Source` (due to...

cla: yes

clear screen before rendering images. this allows users to render multiple images. Currently it will just display IMAGE: ![partygopher](https://user-images.githubusercontent.com/2614075/80820449-df91e780-8ba4-11ea-8257-6cbf12b2382d.gif)

cla: yes

TDLR: In the PR https://github.com/golang/go/pull/68337, we added more info in the error stack, it needs a change in x/tools'test too. Before: golang.org/fake/a golang.org/fake/b golang.org/fake/a After: golang.org/fake/a golang.org/fake/b from a.go golang.org/fake/a...

Currently, Fset is initialized when either NeedTypes or NeedSyntax are set in newLoader(). However, later in refine() it is nullified using a different condition that doesn't take NeedSyntax into account....