crssy

package module
v1.1.16 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: MIT Imports: 6 Imported by: 0

README

crssy

ターミナル上に天気予報を出力するCLI

build Coverage Status codebeat badge Go Report Card Version

概要

このソフトウェアは天気予報をブラウザで調べるよりも手軽に確認できるようにするために, コマンドライン上で天気予報を出力するものである.

使用方法

crssy [OPTION]
OPTIONS
    <場所>  場所の入力をすると, その土地の天気を出力する。
  -v, --version         ソフトウェアのバージョンを出力する。
  -h, --help            このメッセージを出力する。
  -w, --week            日を入力すると, その時の天気を出力する。

インストール方法

hogehoge

プロジェクトについて

開発者

Konishi Yuki

ライセンス

アイコン

名前の由来

天気予報のソフトウェアを作るにあたって名前は何がいいかなと考えました.

よく天気予報で見る天気としては曇り・雨・晴れ・雪だな〜と思い,自分の名前の頭文字と合わせてcrssyとなりました.

バージョン履歴

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Translateweather

func Translateweather(code int) (string, error)

Types

type City

type City struct {
	Country   string  `json:"country"`
	Name      string  `json:"name"`
	Lat       string  `json:"lat"`
	Lng       string  `json:"lng"`
	Latitude  float64 `json:"-"`
	Longitude float64 `json:"-"`
}

func FindCity

func FindCity(cityName string) (*City, error)

type Daily

type Daily struct {
	Weathercode []int    `json:"weathercode`
	Time        []string `json:"time`
}

func ExpectWeather

func ExpectWeather(city *City) (*Daily, error)

func GetWeatherCode

func GetWeatherCode(lat, lon string) (*Daily, error)

type Result

type Result struct {
	Day *Daily `json:"daily"`
}

type Weather

type Weather struct {
	Code string `json:"code"`
	Jp   string `json:"jp"`
	En   string `json:"en"`
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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