sdetector

module
v0.0.0-...-e29dc01 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT

README

Простое приложение на Go, под капотом которого http-сервер с единственным endpoint POST /detect, принимающей строку str и символ char. В ответ возвращает количество вхождений переданного символа в переданной строке.

Конфигурирование через ENV или опции приложения (см. internal/sdetector/config.go)

Формат запроса/ответа - json.

Пример запроса: {"str": "hello world", "char": "o"}

Пример ответа: {"count": 2}

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

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