complex

package
v0.0.5-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MIT Imports: 1 Imported by: 0

README

Complex example

The complex example contains a dummy function which calls an interface. This interface could for example be an HTTP client.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Do() (*Response, error)
}

Client some client interface

type Response

type Response struct {
	Message string
}

Response the clients response message

type Worker

type Worker struct {
	Client Client
}

Worker a worker struct containing the client

func (*Worker) SomeFunc

func (w *Worker) SomeFunc(input []int) (string, error)

SomeFunc some function on the client

Jump to

Keyboard shortcuts

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