Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.46 KB

README.md

File metadata and controls

32 lines (20 loc) · 1.46 KB

MethodURL

Stable Dev Build Status Coverage Aqua

This package gives a URL to github/gitlab/etc where a method from a package is defined.

Example

julia> import MethodURL, Example

julia> MethodURL.url(
          methods(Example.hello)[1]
       )
1-element Vector{String}:
 "https://github.com/JuliaLang/Example.jl/blob/v0.5.5/src/Example.jl#L9"

Context

Julia has a function Base.url(::Method), but this function only works for methods from Base. It worked on non-Base methods in previous Julia versions, but this functionality disappeared (see JuliaLang/julia#47709). This package aims to reimplement that functionality for modern Julia versions.

Work in progress

This package is still being worked on. When it is finished, we want to use it in Pluto.jl stack frames, see fonsp/Pluto.jl#2813