Ah, you’re right. That link goes to an “Introduction” page about how links might connect at nodes, but it does not include an example usage of fromEndSegmentLength or toEndSegmentLength.
I think the page ought to be GoJS Links -- Northwoods Software, but that page too does not have an example. So we should improve an Introduction page about link routing, and then update the API docs accordingly.
Thanks for reporting the problem. You can do it in any of the three channels: GitHub, email, or this forum.