Skip to content

hozlucas28/Go-Module-Practice-2023

Repository files navigation

Go Module Practice [2023]

Repository of a Go module - Web Development course of Udemy platform.

SummaryInstallationContentRelatedLicenseAcknowledgmentsContact

Summary

This is a repository where I store my first Go module uploaded as a practice of Web Development course of Udemy platform, Go language section. Also, I used npm packages like: Prettier and Husky to make my code be more 'prettier'.

Installation

To install this module run command go get github.com/hozlucas28/Go-Module-Practice-2023 in your Go project. Then, just add import (figures "github.com/hozlucas28/Go-Module-Practice-2023") where you want to use it. That's all! Now, check out available content.

• Optional: Run command npm install to install all packages used for make a clean code, like Prettier and Husky for pre-commits.

Content

Objects:

Name Description Example
Circle {<radio length>} Create a circle object with the radio length (argument) that you sent to it. circle := figures.Circle{Radio: 5}
Square {<side length>} Create a square object with the side length (argument) that you sent to it. square := figures.Square{Side: 4}

Functions:

Name Description Example
FigureLenghts(&<circle/square object>) Print the radio/side length, area and perimeter of the circle/square (argument) that you sent to it. figures.FigureLenghts(&circle)

Related

License

This repository is under MIT License, if you want to see what you are allowed to do with the content of this repository, please visit choosealicense for more information.

Acknowledgments

Thanks to Alex Roel teacher to make this course.

Contact

If you want to contact me, please see my socials medias in my GitHub profile.

About

Repository of a Go module practice of @udemy.

Topics

Resources

License

Stars

Watchers

Forks