An open API service indexing awesome lists of open source software.

https://github.com/tameronline/testgo


https://github.com/tameronline/testgo

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# testgo

A simple Go program that prompts the user for their name and greets them.

## Screenshot

Here is a screenshot of the program in action:

![Program Screenshot](img/screenshot.png)

## Features
- Reads user input from the console.
- Ensures the name is not empty.
- Prints a friendly greeting message.

## Prerequisites
- Install [Go](https://go.dev/dl/) (if not already installed).

## Installation & Usage

1. Clone the repository:
```sh
git clone https://github.com/TamerOnLine/testgo.git
cd testgo
```
2. Run the program without compiling:
```sh
go run main.go
```
3. Build and run the compiled binary:
```sh
go build -o testgo
./testgo
```

## Example Output
```
Enter your name: Tamer
Hello, Tamer 👋!
```

## Project Structure
```
tameronline-testgo/
├── README.md # Project documentation
├── LICENSE # License file (MIT License)
├── go.mod # Go module file
├── main.go # Main Go program
└── testgo.code-workspace # VS Code workspace file
```

## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Contributing
Contributions are welcome! Feel free to open issues or submit pull requests.

## Contact
For any inquiries, reach out to [Tamer Hamad Faour](https://github.com/TamerOnLine).