Skip to content

godef by expression not working with go/packages #104

@segevfiner

Description

@segevfiner

I think this works without go/packages:

  1. Create hello.go:
package main

import "fmt"

func main() {
	fmt.Println("Hello, World!")
}
  1. go mod init.
  2. Run godef -f hello.go fmt.Println.
  3. You get the error: godef: Offset -1 was not a valid identifier

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions