internal

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLIFormatter

type CLIFormatter struct {
}

CLIFormatter is logrus log entry formatter for outputting log messages into CLI

func (*CLIFormatter) Format

func (f *CLIFormatter) Format(entry *logrus.Entry) ([]byte, error)

Format transforms log entry suitable form for CLI output by omitting timestamp and context log entry components

type Country

type Country struct {
	Name string
	Code string
}

Country is extracted during parse operation from WIKI page

func NewCountry

func NewCountry(name string, code string) *Country

NewCountry initializes Country type from officially recognized country name and ISO 3166 alpha-3 country code

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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