Skip to content

mpinheir/Terremoto-em-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Earthquake Data Fetcher in Go

This Go program fetches and displas Earthquake data.

Autor: Marcelo Pinheiro

Data Source

USGS

Table of Contents

Getting Started

Prerequisites

  • Go installed on your machine
  • Internet connection to fetch earthquake data from the USGS API

Installation

  1. Clone the repository:

    git clone https://github.com/mpinheir/Terremoto-em-go.git
    
  2. Change into the project directory:

    cd Terremoto-em-go
  3. Build binary:

    go build
  4. Run the program:

    go run main.go <arg>

    ex: go run main.go 6 will display earthquake greater than 6 degrees

  5. Run the binary after building:

    ./eqk <arg>

    ex: ./eqk 5 will display earthquake greater than 5 degrees

Usage

The program fetches data from the USGS Earthquake API and displays information about them, including location, magnitude, and time.

-------------------------------------------------------------------
Earthquakes above 6 Richter scale in the last 30 days:
-------------------------------------------------------------------
Epicenter = [Location]
Magnitude: [Magnitude]
Time: [Timestamp]
-------------------------------------------------------------------

Contributing

Contributions to this project are welcome! Feel free to open issues and pull requests to suggest improvements, report bugs, or add new features.

License

This project is licensed under the MIT License.

About

Earthquake Data Fetcher in Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages