add main function for webui

This commit is contained in:
eyedeekay
2025-02-10 00:37:24 -05:00
parent 8ca4a966cb
commit f2cdd3c934
2 changed files with 20 additions and 0 deletions

2
cmd/web/doc.md Normal file
View File

@ -0,0 +1,2 @@
# web
--

18
lib/loader/doc.md Normal file
View File

@ -0,0 +1,18 @@
# loader
--
import "github.com/go-i2p/go-i2ptunnel/lib/loader"
## Usage
```go
var DEFAULT_SAM_ADDRESS = "localhost:7656"
```
#### func Load
```go
func Load(path string, samAddr ...string) (i2ptunnel.I2PTunnel, error)
```
using go-i2ptunnel-config's Converter, load the config file and return an
I2PTunnel matching the configured tunnel type