mpl

command
v0.0.0-...-ae246d5 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

README

This tool processes markdown files from the training materials to automatically update "Go Playground" links with the latest code from the linked samples.

It will find markdown like the following and automatically update it:

The following link will automatically be updated

[markdown-playground-links](main.go) ([Go Playground](http://play.golang.org/p/X8oPoc-i9L))

The program searches for a link followed by a "([Go Playground](.*))" link.

You can use an empty playground link and it will be automatically populated with the right link.

Usage

Simply run mpl with a list of files you want to process.

# Update the links of the constants README.md
mpl topics/constants/README.md

# Using zsh wildcards, update all markdown files under the current directory
mpl **/*.md

Documentation

Overview

Package main provides a CLI tool to automatically update Go Playground links within a training markdown file

Jump to

Keyboard shortcuts

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