book

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Code generated by templ-component-opts; DO NOT EDIT. This file contains functions and methods for use with Opts in templ components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opt

type Opt func(*Opts)

func Author

func Author(in string) Opt

func Display

func Display(in bool) Opt

func Published

func Published(in time.Time) Opt

func Title

func Title(in string) Opt

type Opts

type Opts struct {
	Title     string
	Author    string
	Published time.Time
	Display   bool `default:"true"`
}

Opts defines options for the Book templ component.

func DefaultOpts

func DefaultOpts() *Opts

func With

func With(opts ...Opt) *Opts

func (*Opts) DisplayStr

func (o *Opts) DisplayStr() string

func (*Opts) With

func (o *Opts) With(opts ...Opt) *Opts

Jump to

Keyboard shortcuts

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