browserbro-go-api

command module
v0.0.0-...-a420a63 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: MIT Imports: 4 Imported by: 0

README

BrowserBro Golang API Client

Golang client for BrowserBro API.

go get -u github.com/bazuker/browserbro-go-api

Example

package main

import (
    "fmt"
    "github.com/bazuker/browserbro-go-api/client"
)

func main() {
    c, err := client.New("http://localhost:10001", nil)
    if err != nil {
        fmt.Println("failed to create client:", err)
        return
    }
    output, err := c.RunPlugin("googlesearch", map[string]any{
        "query": "latest Golang news",
    })
    if err != nil {
        fmt.Println("failed to run plugin:", err)
        return
    }
    fmt.Println(output)
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL