img

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Img

type Img struct {
	*tinydom.Element
}

Img is the html5 element img See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img for reference

func New

func New(src, alt string) *Img

func (*Img) Alt

func (i *Img) Alt() (bool, string)

func (*Img) SetAlt

func (i *Img) SetAlt(value string) *Img

func (*Img) SetSrc

func (i *Img) SetSrc(value string) *Img

func (*Img) Src

func (i *Img) Src() (bool, string)

Jump to

Keyboard shortcuts

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