exercise

package
v0.0.0-...-0e53744 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fibonacci

func Fibonacci() func() int

fibonacci is a function that returns a function that returns an int.

func Pic

func Pic(dx, dy int, s *[][]uint8) *[][]uint8

func Sqrt

func Sqrt(x float64) float64

func SqrtT

func SqrtT(x float64, t int) float64

func SqrtWithE

func SqrtWithE(f float64) (float64, error)

func WordCount

func WordCount(s string) map[string]int

Types

type ErrNegativeSqrt

type ErrNegativeSqrt float64

func (ErrNegativeSqrt) Error

func (e ErrNegativeSqrt) Error() string

type IPAddr

type IPAddr struct {
	Addr1 uint8
	Addr2 uint8
	Addr3 uint8
	Addr4 uint8
}

func (*IPAddr) String

func (ipaddr *IPAddr) String() string

type MyImage

type MyImage struct {
}

func (MyImage) At

func (mi MyImage) At(x, y int) color.Color

func (MyImage) Bounds

func (mi MyImage) Bounds() image.Rectangle

func (MyImage) ColorModel

func (mi MyImage) ColorModel() color.Model

type MyReader

type MyReader struct {
	// contains filtered or unexported fields
}

func NewMyReader

func NewMyReader(stream string) *MyReader

func (*MyReader) Read

func (mr *MyReader) Read(buffer []byte) (int, error)

type Rot13Reader

type Rot13Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(stream *strings.Reader) *Rot13Reader

func (*Rot13Reader) Read

func (rot13 *Rot13Reader) Read(buffer []byte) (int, error)

Jump to

Keyboard shortcuts

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