Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/vaclav-dvorak/go-api-hello-world

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/vaclav-dvorak/go-api-hello-world

  • v0.0.0-20210416102621-6d46cdb42e54
  • Source
  • Go
  • Socket score

Version published
Created
Source

Hello World API in golang

Go version of a Go module

Simple hello world api written in golang

1. API

Just run this and api will start on localhost:8080

go run main.go

1.1. Endpoints

List of api endpoints

1.1.1. Hello

Outputs simple json with hello message

URL: /hello/{name}

2. Swagger

You can run swagger with this command

make serve-swagger

3. Docker

You can build and run this in docker

docker build -t go-api-hello-world:0.1.0 .
docker run -p 8080:8080 go-api-hello-world:0.1.0

FAQs

Package last updated on 16 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc