tenkiGetter

package module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 5 Imported by: 0

README

tenkiGetter

天気情報を取得します

Coverage Status codebeat badge Go Report Card

Description

気象庁から提供されているAPIを利用してCLIから天気情報を取得するアプリケーションです

Usage

hoge

tenkiGetter [オプション] <場所>

オプション
-h --help ヘルプを表示
-v --version バージョンを表示
-d --day 短期天気概況の取得
-w --week 週間天気概況の取得

Installation

hoge

About

hoge

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOffice

func GetOffice() (*simplejson.Json, error)

Types

type Config

type Config struct {
	RunMode    Mode
	OfficeCode string
}

func NewConfig

func NewConfig(mode Mode, str string) *Config

type Forecast

type Forecast struct {
	// contains filtered or unexported fields
}

func NewForecast

func NewForecast() *Forecast

func (*Forecast) GetData

func (forecast *Forecast) GetData(tag string) string

func (*Forecast) GetForecast

func (forecast *Forecast) GetForecast(config *Config) (*Forecast, error)

type Mode

type Mode int
const (
	Day Mode = iota + 1
	Week
)

func (Mode) GetMode

func (m Mode) GetMode() string

func (Mode) String

func (m Mode) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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