tweak

package
v0.0.0-...-61cce43 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	String  string
	ToUpper bool
	Reverse bool
}

Args are a list of options for how to tweak the string

type StringTweaker

type StringTweaker struct{}

StringTweaker is a type of string that can reverse itself

func (StringTweaker) Tweak

func (s StringTweaker) Tweak(args *Args, resp *string) error

Tweak conforms to the RPC library which require: - the method's type is exported. - the method is exported. - the method has two arguments, both exported (or builtin) types. - the method's second argument is a pointer. - the method has return type error.

Jump to

Keyboard shortcuts

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