mkget

command
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 13 Imported by: 0

README

mkget generates get methods for private struct fields

$ mkget -h
Usage: mkgetters [OPTIONS] [FILE]

Options
    -t, --types : ""
        CSV list of types

    -w, --write-file : ""
    -a, --append-file : ""
    -h, --help

Example

$ mkget -t Car
// GENERATED, DO NOT EDIT!

package main

func (c *Car) Model() string { return c.model }
func (c *Car) Make() int     { return c.make }

Documentation

Overview

Generates get methods for private struct fields

Jump to

Keyboard shortcuts

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