# README
HTTP JSON Receiver
This repository contains a simple Go program that sets up an HTTP server to receive JSON data via POST requests.
Overview
The program main.go initializes an HTTP server on port 8080. It listens for POST requests on the root endpoint / and expects JSON data in the request body.
Requirements
Go programming language (version X.X.X) HTTP client to send POST requests for testing (e.g., cURL, Postman)
Usage
- Clone the repository: git clone https://github.com/asanElzhanov/let-sgo.git
- Navigate to the repository directory: cd let-sgo
- Run program: go run main.go
- Send POST requests to the server with JSON data in the body. For example, using cURL: curl -X POST http://localhost:8080 -d '{"message":"Hello, server!"}'
Functionality
POST /: Endpoint to send JSON data. Request: Expects JSON data with a "message" field. Response: Responds with a JSON object indicating success or failure based on the presence of the "message" field.
Code Structure
main.go: Contains the main program code setting up the HTTP server and handling incoming requests.
Notes
This is a basic example intended for educational purposes. Customize the code to suit your specific use case or integrate it into a larger project.