Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions gofrompython/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ that file has a `func main()` declared, that funciton will not be called.

You can [view the source here](./src/dns/dnscmd/dnscmd.go), and below:

```
```go
package main

import (
Expand All @@ -60,7 +60,7 @@ func main() {

You can [view the source of the library here](./src/dns/dnslib/dnslib.go) and below. Note that the spacing of the `//export` is specific - there should be no space between the `//` and the `export` text:

```
```go
package dnslib

import (
Expand All @@ -72,7 +72,7 @@ import (
func ReturnString(val string) *C.char {
cname, err := net.LookupCNAME(val)
if err != nil {
C.CString("Could not find CNAME")
return C.CString("Could not find CNAME")
}
return C.CString(cname)
}
Expand Down
2 changes: 1 addition & 1 deletion gofrompython/src/dns/dnslib/dnslib.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
func ReturnString(val string) *C.char {
cname, err := net.LookupCNAME(val)
if err != nil {
C.CString("Could not find CNAME")
return C.CString("Could not find CNAME")
}
return C.CString(cname)
}
Expand Down