quickfix

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: MIT Imports: 10 Imported by: 0

README

quickfix

suppresses golint warnings by generating basic comments for functions, variables & structs

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Age uint

Age defines the age var

View Source
var Color string

PetAge defines the age var

View Source
var Hair string
View Source
var Name string
View Source
var Nameickname string

Functions

func FixAll

func FixAll()

FixAll fixes all supported warnings

func GetHair

func GetHair(p Person) string

func PreviewWarnings

func PreviewWarnings()

PreviewWarnings displays all the warnings that will be fixed

Types

type Person

type Person struct {
	Name string `json:"name"`
	Age  uint   `json:"age"`
	Hair string `json:"hair"`
}

func (*Person) GetAge

func (p *Person) GetAge() uint

func (Person) ValidateName added in v0.0.5

func (p Person) ValidateName() bool

type Pet

type Pet struct {
	Nickname string `json:"nickname"`
	Color    string `json:"color"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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