utils

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package utils provides utility functions for the protoc-gen-doc plugin

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToTickOrCross

func BoolToTickOrCross(b bool) string

func FlattenComment

func FlattenComment(s string) string

func PadRight

func PadRight(s string, padWith string, wantedLength int) string

func PadRightSlice added in v0.0.7

func PadRightSlice(inputs []string, padWith string, padTo []int) ([]string, error)

func PluralSuffix

func PluralSuffix(check int, pluralSuffix string, singularSuffix string) string

func StringGTLengthHelper

func StringGTLengthHelper(v *int, s string)

func WriteTable added in v0.0.7

func WriteTable(g *protogen.GeneratedFile, inputData *TableData) error

Types

type TableData added in v0.0.7

type TableData struct {
	Headers []string
	Rows    [][]string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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