frequently

command module
v0.0.0-...-98a4f0b Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

Frequently, the words counter

Installation

requires go 1.13 or later

  1. clone this repository
  2. download dependencies: go mod download
  3. build using make build or go build -o frequently main.go

Usage

Main commands

command description
serve start http server
req make request as client to server
help help about any command
Serve Command

use serve command to start http server.

Usage:
  ./frequently serve [flags]

Flags:
  -a, --address string   http listening port (default ":8000")
  -h, --help             help for serve
Req Command

use req command to make request as client to server

Usage:
  ./frequently req [flags]

Flags:
  -f, --file string   file to check
  -h, --help          help for req
  -i, --insensitive   insensitive mode
  -m, --max string    max result (default "10")
  -u, --url string    url for request (default "http://localhost:8000")

example to get top 5 words appearance from server: ./frequently -f ./data/GoLang_Test.txt --max=5

Documentation

Overview

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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