mirror of
https://github.com/fumiama/terasu.git
synced 2026-06-10 13:10:28 +08:00
feat: add plugin
This commit is contained in:
11
README.md
11
README.md
@@ -19,3 +19,14 @@ tls.Client(terasu.NewConn(conn), &tls.Config{
|
||||
ServerName: host,
|
||||
}).Handshake()
|
||||
```
|
||||
|
||||
## Custom Plugin (Linux Only)
|
||||
|
||||
Custom plugin code is located in the `ext/custom` directory. You can write and build your own plugin.
|
||||
|
||||
1. Write your plugin code in the `ext/custom` directory
|
||||
2. Build the plugin:
|
||||
|
||||
```bash
|
||||
GOOS=linux go build -o terasu.plugin.so -buildmode=plugin -ldflags="-s -w" -trimpath ./ext/custom
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user