example

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package example provides a sample library structure for the tmpl project.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidInput = errors.New("invalid input")

ErrInvalidInput is returned when the input is invalid.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client represents an example client.

func NewClient

func NewClient(cfg *Config) (*Client, error)

NewClient creates a new Client with the given configuration.

func (*Client) Process

func (c *Client) Process(input string) (string, error)

Process performs some example processing.

type Config

type Config struct {
	Name    string
	Verbose bool
}

Config holds the configuration for the example.

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns a Config with default values.

Jump to

Keyboard shortcuts

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