https://github.com/matthewboyd/plugs
Plugs module to see different types of plug types needed in different countries, and a comparison tool between two countries plug socket types.
https://github.com/matthewboyd/plugs
go golang gomodule plugs
Last synced: 10 months ago
JSON representation
Plugs module to see different types of plug types needed in different countries, and a comparison tool between two countries plug socket types.
- Host: GitHub
- URL: https://github.com/matthewboyd/plugs
- Owner: matthewboyd
- License: mit
- Created: 2021-12-17T14:36:02.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-21T20:22:28.000Z (over 4 years ago)
- Last Synced: 2025-03-23T21:47:13.125Z (about 1 year ago)
- Topics: go, golang, gomodule, plugs
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# plugs
## Importing the module:
`go get github.com/matthewboyd/plugs`
```imports (
"github.com/matthewboyd/plugs"
```
## How to use the module:
There are two functions within the module:
* Display
* DoINeedAConverter
## Display:
The display will allow you to see the following properties:
* The plug type
* The volts used in the country
* The hertz used in the country
Example use:
plugs.Display("Serbia")
## DoINeedAConverter
This will allow you to compare two countries and see if you require a converter.
plugs.DoINeedAConverter("USA", "UK")