<commit_before># FlagStruct

*A simple way to register and parse flag into struct*

[![Build Status](https://travis-ci.org/ngdinhtoan/flagstruct.svg)](https://travis-ci.org/ngdinhtoan/flagstruct)
[![Coverage Status](https://coveralls.io/repos/github/ngdinhtoan/flagstruct/badge.svg)](https://coveralls.io/github/ngdinhtoan/flagstruct)
[![GoDoc](https://godoc.org/github.com/ngdinhtoan/flagstruct?status.svg)](https://godoc.org/github.com/ngdinhtoan/flagstruct)

## Install

    go get -u github.com/ngdinhtoan/flagstruct

## Tag syntax

	`flag:"name" default:"value" usage:"description"`

Tag `default` and `usage` can be omit.

## Example
<commit_msg>Add badge Go report card.<commit_after># FlagStruct

*A simple way to register and parse flag into struct*

[![Build Status](https://travis-ci.org/ngdinhtoan/flagstruct.svg)](https://travis-ci.org/ngdinhtoan/flagstruct)
[![Coverage Status](https://coveralls.io/repos/github/ngdinhtoan/flagstruct/badge.svg)](https://coveralls.io/github/ngdinhtoan/flagstruct)
[![Go Report Card](https://goreportcard.com/badge/ngdinhtoan/flagstruct)](https://goreportcard.com/report/ngdinhtoan/flagstruct)
[![GoDoc](https://godoc.org/github.com/ngdinhtoan/flagstruct?status.svg)](https://godoc.org/github.com/ngdinhtoan/flagstruct)

## Install

    go get -u github.com/ngdinhtoan/flagstruct

## Tag syntax

	`flag:"name" default:"value" usage:"description"`

Tag `default` and `usage` can be omit.

## Example

{'fraction_non_alphanumeric': 0.1674740484429066, 'fraction_numerical': 0.0, 'mean_word_length': 5.602739726027397, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1580078', 'n_tokens_mistral': 551, 'n_tokens_neox': 518, 'n_words': 77}