browser

package
v1.9.0-test4 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{}

Client implements browser operations.

func (*Client) OpenURL

func (c *Client) OpenURL(url string) error

OpenURL opens the given URL in the default browser.

type ClientInterface

type ClientInterface interface {
	OpenURL(url string) error
}

ClientInterface defines the contract for browser operations.

func NewClient

func NewClient() ClientInterface

NewClient creates a new browser client.

type MockClient

type MockClient struct {
	mock.Mock
}

MockClient is a mock implementation of ClientInterface for testing.

func (*MockClient) OpenURL

func (m *MockClient) OpenURL(url string) error

OpenURL mocks opening a URL in the browser.

Jump to

Keyboard shortcuts

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