examplehelper

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PubSubMemory

type PubSubMemory[T any] struct {
	// contains filtered or unexported fields
}

⚠️ This is used for example purposes only

func NewPubSubMemory

func NewPubSubMemory[T any]() *PubSubMemory[T]

⚠️ This is used for example purposes only

func (*PubSubMemory[T]) Publish

func (ps *PubSubMemory[T]) Publish(msg T)

func (*PubSubMemory[T]) Subscribe

func (ps *PubSubMemory[T]) Subscribe() chan T

type SQLPrinter

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

func NewSQLPrinter

func NewSQLPrinter(db *sql.DB) *SQLPrinter

func (*SQLPrinter) Query

func (s *SQLPrinter) Query(query string, args ...any)

Jump to

Keyboard shortcuts

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