htmldiff

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

You can use the "packr clean" command to clean up this, and any other packr generated files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHTML

func CreateHTML(w io.Writer, header, body string) error

CreateHTML creates a html from template with the args, writes the html to the writer.

func ReadBody

func ReadBody(r io.Reader, w io.Writer) error

ReadBody reads html from 'r' reader, extract body, and writes the body string to the 'w' writer.

func ReadHeader

func ReadHeader(r io.Reader, w io.Writer) error

ReadHeader reads html from 'r' reader, extract header, and writes the header string to the 'w' writer.

func ReadHeaderAndBody

func ReadHeaderAndBody(r io.Reader, wh, wb io.Writer) error

ReadHeaderAndBody reads html from 'r' reader, extract header and body. Then, this function writes the header string to the 'wh' writer and writes the body string to the 'wb' writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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