htmltablegenerator

package
v0.0.0-...-6307f30 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertMarkdownToHTML

func ConvertMarkdownToHTML(markdownContent, outputPath string) error

func GenerateHtmlTable

func GenerateHtmlTable(outputPath string, citiesData []model.DestinationInfo) error

GenerateHtmlTable creates an HTML table for multiple cities and saves it to the specified file path.

Types

type CityData

type CityData struct {
	Name              string
	WeatherForecast   []WeatherDay
	FlightLink        string
	AccommodationLink string
	ThingsToDoLink    string
}

Define a struct for each city's data, including weather forecast and links.

type WeatherDay

type WeatherDay struct {
	Day  string
	Icon string
}

Define a struct for the weather information of a day.

Jump to

Keyboard shortcuts

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