Skip to content

Commit 08e5720

Browse files
committed
change: update docs
1 parent c4d7da6 commit 08e5720

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ func Init(path string, options ...Option) (plugin IPlugin, err error)
3636

3737
- path: built plugin file path
3838
- options: specify extra plugin options
39-
- WithDebugLogger(debug bool): whether to print debug level logs in plugin process
40-
- WithLogFile(logFile string): specify log file path
41-
- WithDisableTime(disable bool): whether disable log time
42-
- WithPython3(python3 string): specify custom python3 path
39+
- `WithDebugLogger(debug bool)`: whether to print debug level logs in plugin process
40+
- `WithLogFile(logFile string)`: specify log file path
41+
- `WithDisableTime(disable bool)`: whether disable log time
42+
- `WithPython3(python3 string)`: specify custom python3 path
4343

4444
2, call plugin API to deal with plugin functions.
4545

docs/go-grpc-plugin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ The complete log example can be found in the file [hashicorp_grpc_go.log].
8282

8383

8484
[fungo/examples/]: ../fungo/examples/
85-
[hashicorp_grpc_go.log]: ../fungo/examples/logs/hashicorp_grpc_go.log
85+
[hashicorp_grpc_go.log]: logs/hashicorp_grpc_go.log

docs/go-rpc-plugin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ The complete log example can be found in the file [hashicorp_rpc_go.log].
2121
[golang plugin over gRPC]: go-grpc-plugin.md
2222
[examples/plugin/]: ../examples/plugin/
2323
[examples/plugin/debugtalk.go]: ../examples/plugin/debugtalk.go
24-
[hashicorp_rpc_go.log]: ../fungo/examples/logs/hashicorp_rpc_go.log
24+
[hashicorp_rpc_go.log]: logs/hashicorp_rpc_go.log

hashicorp_plugin_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func TestHashicorpGRPCGoPlugin(t *testing.T) {
3535

3636
plugin, err := Init("fungo/examples/debugtalk.bin",
3737
WithDebugLogger(true),
38-
WithLogFile("fungo/examples/logs/hashicorp_grpc_go.log"),
38+
WithLogFile("docs/logs/hashicorp_grpc_go.log"),
3939
WithDisableTime(true))
4040
if err != nil {
4141
t.Fatal(err)
@@ -52,7 +52,7 @@ func TestHashicorpRPCGoPlugin(t *testing.T) {
5252
os.Setenv(fungo.PluginTypeEnvName, "rpc")
5353
plugin, err := Init("fungo/examples/debugtalk.bin",
5454
WithDebugLogger(true),
55-
WithLogFile("fungo/examples/logs/hashicorp_rpc_go.log"),
55+
WithLogFile("docs/logs/hashicorp_rpc_go.log"),
5656
WithDisableTime(true))
5757
if err != nil {
5858
t.Fatal(err)

0 commit comments

Comments
 (0)