Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit e11afaa

Browse files
committed
doc: fixing issue sbinet#3 (wrong instructions)
1 parent 3181a10 commit e11afaa

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.rst

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Install:
2222
With `Go 1` and the ``go`` tool, ``cgo`` packages can't pass anymore additional ``CGO_CFLAGS`` from external programs (except `pkg-config`) to the "fake" ``#cgo`` preprocessor directive.
2323
So one has to do instead::
2424

25-
$ mkdir -p $GOPATH/pkg/github.com/sbinet
26-
$ cd $GOPATH/pkg/github.com/sbinet
25+
$ mkdir -p $GOPATH/src/github.com/sbinet
26+
$ cd $GOPATH/src/github.com/sbinet
2727
$ git clone http://github.com/sbinet/go-python
2828
$ cd go-python && make
2929

@@ -33,7 +33,7 @@ Documentation
3333

3434
Is available on ``gopkgdoc``:
3535

36-
http://go.pkgdoc.org/github.com/sbinet/go-python/pkg/python
36+
http://godoc.org/github.com/sbinet/go-python
3737

3838

3939
Example:
@@ -45,7 +45,14 @@ Example:
4545
package main
4646
4747
import "fmt"
48-
import "github.com/sbinet/go-python/pkg/python"
48+
import "github.com/sbinet/go-python"
49+
50+
func init() {
51+
err := python.Initialize()
52+
if err != nil {
53+
panic(err.Error())
54+
}
55+
}
4956

5057
func main() {
5158
gostr := "foo"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy