An open API service indexing awesome lists of open source software.

https://github.com/hukkin/mdformat-gofmt

Mdformat plugin to gofmt Go code blocks
https://github.com/hukkin/mdformat-gofmt

gofmt markdown mdformat

Last synced: about 1 month ago
JSON representation

Mdformat plugin to gofmt Go code blocks

Awesome Lists containing this project

README

          

[![Build Status](https://github.com/hukkinj1/mdformat-gofmt/workflows/Tests/badge.svg?branch=master)]()
[![PyPI version]()]()

# mdformat-gofmt
> Mdformat plugin to gofmt Go code blocks

## Description
mdformat-gofmt is an [mdformat](https://github.com/executablebooks/mdformat) plugin
that makes mdformat format Go code blocks with [gofmt](https://golang.org/cmd/gofmt).
The plugin invokes gofmt in a subprocess so having Go installed is a requirement.

## Installing
1. [Install Go](https://golang.org/doc/install)
1. Install mdformat-gofmt
```bash
pip install mdformat-gofmt
```

## Usage
```bash
mdformat YOUR_MARKDOWN_FILE.md
```