web

package
v0.0.0-...-f204870 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Functions for creating and servicing a web interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReqUrl

func ReqUrl(req config.ReqSpec) string

ReqUrl converts a ReqSpec into a url friendly string for use in the HTML template @llr REQ-TRAQ-SWL-37

func Serve

func Serve(cfg *config.Config, rg_ *reqs.ReqGraph, addr string) error

Serve starts the web server listening on the supplied address:port @llr REQ-TRAQ-SWL-37

func Title

func Title(str string) string

Helper function for the HTML template to get a string with only the first character in capitals @llr REQ-TRAQ-SWL-37

Types

This section is empty.

Jump to

Keyboard shortcuts

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