fixplurals

command
v0.0.0-...-52d6a69 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: Apache-2.0, BSD-2-Clause Imports: 12 Imported by: 0

README

fixplurals Build Status GoDoc Go Report Card

fixplurals - remove redundant parameter and result types from function signatures


For example, the following function signature:

func fun(a string, b string) (c string, d string)

becomes:

func fun(a, b string) (c, d string)

after applying fixplurals.

Installation

% go get -u github.com/davidrjenni/reftools/cmd/fixplurals

Usage

% fixplurals [-dry] packages

Flags:

-dry: changes are printed to stdout instead of rewriting the source files

Documentation

Overview

Fixplurals removes redundant parameter and result types from function signatures.

For example, the following function signature:

func fun(a string, b string) (c string, d string)

becomes:

func fun(a, b string) (c, d string)

after applying fixplurals.

Usage:

% fixplurals [-dry] packages

Flags:

-dry: changes are printed to stdout instead of rewriting the source files

Jump to

Keyboard shortcuts

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