one

package
v0.0.0-...-2efe6f1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package one provide some novel functionality, for use in package testing

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FOne

type FOne struct {
	// Name of the instance object
	Name string
	// Value of the instance object
	Value string
}

func (*FOne) CalculateSum

func (one *FOne) CalculateSum(a, b int) int

CalculateSum return sum of two integers

func (*FOne) FibNoCache

func (one *FOne) FibNoCache(n int) int

CalculateSum return sum of two integers

Example
fmt.Println((&FOne{}).FibNoCache(10))
Output:

55

type FOneSub

type FOneSub struct {
	FOne
}

FOneSub use FOne as parent

Jump to

Keyboard shortcuts

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