<commit_before># mylogin - Go utilities for reading MySQL credentials from `~/.mylogin.cnf`

[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://godoc.org/github.com/dolmen-go/mylogin)
[![Travis-CI](https://img.shields.io/travis/dolmen-go/mylogin.svg)](https://travis-ci.org/dolmen-go/mylogin)
[![Go Report Card](https://goreportcard.com/badge/github.com/dolmen-go/mylogin)](https://goreportcard.com/report/github.com/dolmen-go/mylogin)

About `mylogin.cnf`:

- <https://dev.mysql.com/doc/refman/8.0/en/mysql-config-editor.html>
- <https://dev.mysql.com/doc/mysql-utilities/1.5/en/mysql-utils-intro-connspec-mylogin.cnf.html>

## Go package

[`github.com/dolmen-go/mylogin`](https://godoc.org/github.com/dolmen-go/mylogin) Library for reading and writing `~/.mylogin.cnf`.


## Utilities

### [`mylogin`](https://godoc.org/github.com/dolmen-go/mylogin/cmd/mylogin): dump `~/.mylogin.cnf` content in clear

```sh
go get -u github.com/dolmen-go/cmd/mylogin
mylogin -h
```

### [`mylogin-dsn`](https://godoc.org/github.com/dolmen-go/mylogin/cmd/mylogin-dsn): dump a `mylogin.cnf` section as a [`go-sql-driver/mysql`](https://github.com/go-sql-driver/mysql) connection string prefix

```sh
go get -u github.com/dolmen-go/cmd/mylogin-dsn
mylogin-dsn -h
```

## See also
<commit_msg>README: fix Travis-CI badge<commit_after># mylogin - Go utilities for reading MySQL credentials from `~/.mylogin.cnf`

[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://godoc.org/github.com/dolmen-go/mylogin)
[![Travis-CI](https://api.travis-ci.org/dolmen-go/mylogin.svg?branch=master)](https://travis-ci.org/dolmen-go/mylogin)
[![Go Report Card](https://goreportcard.com/badge/github.com/dolmen-go/mylogin)](https://goreportcard.com/report/github.com/dolmen-go/mylogin)

About `mylogin.cnf`:

- <https://dev.mysql.com/doc/refman/8.0/en/mysql-config-editor.html>
- <https://dev.mysql.com/doc/mysql-utilities/1.5/en/mysql-utils-intro-connspec-mylogin.cnf.html>

## Go package

[`github.com/dolmen-go/mylogin`](https://godoc.org/github.com/dolmen-go/mylogin) Library for reading and writing `~/.mylogin.cnf`.


## Utilities

### [`mylogin`](https://godoc.org/github.com/dolmen-go/mylogin/cmd/mylogin): dump `~/.mylogin.cnf` content in clear

```sh
go get -u github.com/dolmen-go/cmd/mylogin
mylogin -h
```

### [`mylogin-dsn`](https://godoc.org/github.com/dolmen-go/mylogin/cmd/mylogin-dsn): dump a `mylogin.cnf` section as a [`go-sql-driver/mysql`](https://github.com/go-sql-driver/mysql) connection string prefix

```sh
go get -u github.com/dolmen-go/cmd/mylogin-dsn
mylogin-dsn -h
```

## See also

{'fraction_non_alphanumeric': 0.20594965675057209, 'fraction_numerical': 0.0030511060259344014, 'mean_word_length': 4.386036960985626, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 24, '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': '3031157', 'n_tokens_mistral': 1088, 'n_tokens_neox': 1152, 'n_words': 127}