google / google/go-jsonnet

Find where function is defined

Open
#448 1 comment 0 reactions 0 assignees View on GitHub
enhancement research
Dominant language
Go
Stars
1.8k
Forks
263
PR merge metrics
No merged PRs in 30d

Description

I'm building a docs generator for Jsonnet at [sh0rez/docsonnet](https://github.com/sh0rez/docsonnet).

It builds a godoc-style page, and I would like to copy the behaviour where you click on a signature and are redirected to the respective source code on github.com.

While I can quite easily get the filename by passing `std.thisFile` to my library, the actual line in the source file is harder.

Is there a recommended / good way to approach this problem?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.