https://github.com/juliapluto/methodurl.jl
Return the remote repository URL of any Julia method
https://github.com/juliapluto/methodurl.jl
Last synced: 4 months ago
JSON representation
Return the remote repository URL of any Julia method
- Host: GitHub
- URL: https://github.com/juliapluto/methodurl.jl
- Owner: JuliaPluto
- License: mit
- Created: 2024-10-21T18:36:08.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-11-18T15:47:18.000Z (8 months ago)
- Last Synced: 2025-01-25T11:08:45.793Z (5 months ago)
- Language: Julia
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MethodURL
[](https://adrhill.github.io/MethodURL.jl/stable/)
[](https://adrhill.github.io/MethodURL.jl/dev/)
[](https://github.com/adrhill/MethodURL.jl/actions/workflows/CI.yml?query=branch%3Amain)
[](https://codecov.io/gh/adrhill/MethodURL.jl)
[](https://github.com/JuliaTesting/Aqua.jl)This package gives a URL to github/gitlab/etc where a method from a package is defined.
# Example
```julia
julia> import MethodURL, Examplejulia> 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 https://github.com/JuliaLang/julia/issues/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 https://github.com/fonsp/Pluto.jl/pull/2813