mkset

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

mkset generates set methods for private struct fields

$ mkset -h
Usage: mkset [OPTIONS] [FILE]

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

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

Example

$ mkset -t Car .
// GENERATED, DO NOT EDIT!

package main

func (c *Car) SetModel(v string) { c.model = v }
func (c *Car) SetMake(v int)     { c.make = v }

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