go-triangle-classification

command module
v0.0.0-...-8d6ec7d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

README

go-triangle-classification

Run LocalStack

localstack start

Validated table created

 aws --profile=localstack --endpoint-url=http://localhost:4566 --region=us-east-1  dynamodb list-tables

Generate unit test with Mockgen

mockgen -source=[file].go -destination=[path to mocks package]/[mock_file].go -package mocks

e.g

 mockgen -source=./usecase/authentication/jwt_token.go -destination=./mocks/jwt_token_mock.go -package mocks

Generate Swagger Documentation

In this project, We use the Swaggo Gin. The API information will be in the main file and other information will be in the methods of the handler. Any change is needed to run the command below to generate the documentation files:

 swag init

Could be accessed via:

    http://localhost:8080/docs/index.html

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
application
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
jwt
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
usecase

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL