mkset

command
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 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