mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-17 05:13:09 +00:00
golang example end using negentropy dependency plus simple readme.md
This commit is contained in:
parent
ba1870d114
commit
4cfa504bf8
26
examples/golang/README.md
Normal file
26
examples/golang/README.md
Normal file
@ -0,0 +1,26 @@
|
||||
|
||||
## Pre-requisite
|
||||
libwaku.so is needed to be compiled and present in build folder. To create it:
|
||||
```code
|
||||
make POSTGRES=1 libwaku -j4
|
||||
```
|
||||
|
||||
## Compilation
|
||||
|
||||
From nwaku root folder, do
|
||||
|
||||
```code
|
||||
go build -o waku-go examples/golang/waku.go
|
||||
```
|
||||
|
||||
## Run
|
||||
From the nwaku root folder:
|
||||
|
||||
|
||||
```code
|
||||
export LD_LIBRARY_PATH=build
|
||||
```
|
||||
|
||||
```code
|
||||
./waku-go
|
||||
```
|
||||
@ -1,7 +1,7 @@
|
||||
package main
|
||||
|
||||
/*
|
||||
#cgo LDFLAGS: -L../../build/ -lwaku -lnegentropy
|
||||
#cgo LDFLAGS: -L../../build/ -lwaku
|
||||
#cgo LDFLAGS: -L../../ -Wl,-rpath,../../
|
||||
|
||||
#include "../../library/libwaku.h"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user