Skip to content

Commit 3ae2262

Browse files
authored
*: replace old golang.org links with new go.dev (#3774)
1 parent c1c9fea commit 3ae2262

File tree

7 files changed

+65
-65
lines changed

7 files changed

+65
-65
lines changed

Documentation/api/ClientHowto.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Command line arguments that should be handed to the inferior process should be s
2727
dlv exec --headless ./somebinary -- these arguments are for the inferior process
2828
```
2929

30-
Specifying a static port number, like in the [README](//github.com/go-delve/Delve/tree/master/Documentation/README.md) example, can be done using `--listen=127.0.0.1:portnumber`.
30+
Specifying a static port number, like in the [README](//github.com/go-delve/delve/tree/master/Documentation/README.md) example, can be done using `--listen=127.0.0.1:portnumber`.
3131

3232
This will, however, cause problems if you actually spawn multiple instances of the debugger.
3333

@@ -39,11 +39,11 @@ The `--log-dest` option can be used to redirect the "API server listening at:" m
3939

4040
Once you have a running headless instance you can connect to it and start sending commands. Delve's protocol is built on top of the [JSON-RPC 1.0 specification](https://www.jsonrpc.org/specification_v1).
4141

42-
The methods of a `service/rpc2.RPCServer` are exposed through this connection, to find out which requests you can send see the documentation of RPCServer on [godoc](https://godoc.org/github.com/go-delve/Delve/service/rpc2#RPCServer).
42+
The methods of a `service/rpc2.RPCServer` are exposed through this connection, to find out which requests you can send see the documentation of RPCServer on [Go Reference](https://pkg.go.dev/github.com/go-delve/delve/service/rpc2#RPCServer).
4343

4444
### Example
4545

46-
Let's say you are trying to create a breakpoint. By looking at [godoc](https://godoc.org/github.com/go-delve/Delve/service/rpc2#RPCServer) you'll find that there is a `CreateBreakpoint` method in `RPCServer`.
46+
Let's say you are trying to create a breakpoint. By looking at [Go Reference](https://pkg.go.dev/github.com/go-delve/delve/service/rpc2#RPCServer) you'll find that there is a `CreateBreakpoint` method in `RPCServer`.
4747

4848
This method, like all other methods of RPCServer that you can call through the API, has two arguments: `args` and `out`: `args` contains all the input arguments of `CreateBreakpoint`, while `out` is what `CreateBreakpoint` will return to you.
4949

@@ -190,7 +190,7 @@ If you want to let your users specify a breakpoint on a function selected
190190
from a list of all functions you should specify the name of the function in
191191
the FunctionName field of Breakpoint.
192192

193-
If you want to support the [same language as dlv's break and trace commands](//github.com/go-delve/Delve/tree/master/Documentation/cli/locspec.md)
193+
If you want to support the [same language as dlv's break and trace commands](//github.com/go-delve/delve/tree/master/Documentation/cli/locspec.md)
194194
you should call RPCServer.FindLocation and
195195
then use the returned slice of Location objects to create Breakpoints to
196196
pass to CreateBreakpoint: just fill each Breakpoint.Addr with the
@@ -244,7 +244,7 @@ are interested in the topmost stack frame of the current goroutine (or
244244
thread) use: `EvalScope{ GoroutineID: -1, Frame: 0 }`.
245245

246246
More information on the expression language interpreted by RPCServer.Eval
247-
can be found [here](//github.com/go-delve/Delve/tree/master/Documentation/cli/expr.md).
247+
can be found [here](//github.com/go-delve/delve/tree/master/Documentation/cli/expr.md).
248248

249249
### Variable shadowing
250250

Documentation/api/json-rpc/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ Note that this JSON-RPC interface is served over a streaming socket, *not* over
77
# API versions
88

99
Delve currently supports two versions of its API. By default a headless instance of `dlv` will serve APIv1 for backward compatibility with old clients, however new clients should use APIv2 as new features will only be made available through version 2. To select APIv2 use `--api-version=2` command line argument.
10-
Clients can also select APIv2 by sending a [SetApiVersion](https://godoc.org/github.com/go-delve/delve/service/rpccommon#RPCServer.SetApiVersion) request specifying `APIVersion = 2` after connecting to the headless instance.
10+
Clients can also select APIv2 by sending a [SetApiVersion](https://pkg.go.dev/github.com/go-delve/delve/service/rpccommon#RPCServer.SetApiVersion) request specifying `APIVersion = 2` after connecting to the headless instance.
1111

1212
# API version 2 documentation
1313

14-
All the methods of the type `service/rpc2.RPCServer` can be called using JSON-RPC, the documentation for these calls is [available on godoc](https://godoc.org/github.com/go-delve/delve/service/rpc2#RPCServer).
14+
All the methods of the type `service/rpc2.RPCServer` can be called using JSON-RPC, the documentation for these calls is [available on godoc](https://pkg.go.dev/github.com/go-delve/delve/service/rpc2#RPCServer).
1515

1616
Note that all exposed methods take one single input parameter (usually called `args`) of a struct type and also return a result of a struct type. Also note that the method name should be prefixed with `RPCServer.` in JSON-RPC.
1717

0 commit comments

Comments
 (0)