CU Freelance Library

Stacks

  • golang

Getting Start

These instructions will guide you to download the library

Installing

go get https://github.com/2110336-2565-2/sec3-group15-cu-freelance-library@latest

  1. Clone the project from CU Freelance Library
  2. Download dependencies by go mod download

Testing

  1. Run go test -v -coverpkg ./internal/... -coverprofile coverage.out -covermode count ./... or make test

Services

Logger

The logger service method usage

Info Print the info level log

    loggerService.Info("message", "key1", "val1", "key2", "val2",...)

Debug Print the debug level log

    loggerService.Info("message", "key1", "val1", "key2", "val2",...)

Error Print the error level log and send sentry issue

    loggerService.Info("message", error, "key1", "val1", "key2", "val2",...)