warnings

package module
v0.0.0-...-3944080 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Unlicense Imports: 5 Imported by: 0

README

GIT.FJALL.NET/WX/WARNINGS
=========================

These functions are based on the National Weather Service API[1].
Below is an overview of each function, it's variables, and how to use them.

FUNCTIONS
---------

> warnings.All(wt string) []string
Gets *all* of the active warnings under the warning type, wt, and returns a list
of every one. Formatted.

> warnings.Latest(wt string) string
Gets only the latest warning under the warning type, wt. Formatted.

> warnings.Raw(wt string) string
Returns *all* of the active warnings under the warning type, wt. Unformatted.

> warnings.Types() string
Returns all of the possible warning types, which can be used as wt.


VARIABLES
---------

> wt string
Can be accessed by running warnings.Types(). Case-insensitive.



---------
FOOTNOTES
---------

1. https://www.weather.gov/documentation/services-web-api

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(wt string) []string

func Latest

func Latest(wt string) string

func Raw

func Raw(wt string) string

func Types

func Types() string

Types

type Warning

type Warning struct {
	ID         string       `json:"id"`
	Properties w_properties `json:"properties"`
}

Jump to

Keyboard shortcuts

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