Skip to content

Commit af10dc1

Browse files
Update
1 parent 171787f commit af10dc1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ One crucial function of a network API is the ability to resolve services, addres
3434

3535
For instance the following program looks up the IP address for the given host. It uses
3636
function `net.LookupHost()` which returns a slice of string IP addresses.
37-
```
37+
38+
```go
3839
func main() {
3940
flag.StringVar(&host, "host", "localhost", "host name to resolve")
4041
flag.Parse()
@@ -56,7 +57,7 @@ to relies on OS system calls.
5657

5758
This behavior can be overridden using the `GODEBUG` environment variale as shown.
5859

59-
```
60+
```sh
6061
export GODEBUG=netdns=go # use Go resolver
6162
export GODEBUG=netdns=cgo # use C resolver
6263
```

0 commit comments

Comments
 (0)