roadmap

package
v0.0.0-...-3790768 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Tolib = Student{"Tolib", 20, []int{21, 23, 54, 23, 34, 46, 25}}

Functions

func ArraysDontChange

func ArraysDontChange()

func CarIndustry

func CarIndustry()

func Composition

func Composition()

func Concurrency

func Concurrency()

func ContainsDUplicate

func ContainsDUplicate(nums []int) bool

func ContainsNearbyDuplicate

func ContainsNearbyDuplicate(nums []int, k int) bool

func ContainsNearbyDuplicateWithMap

func ContainsNearbyDuplicateWithMap(nums []int, k int) bool

func CountEven

func CountEven(num int) int

func Fibonacci

func Fibonacci(x int) int

func FibonacciWithClosure

func FibonacciWithClosure() func() int

func FindRoot

func FindRoot(n float64) float64

func FizzBuzz

func FizzBuzz(n int) []string

func GetAverageScore1

func GetAverageScore1() float32

func HelloString

func HelloString()

func Increment

func Increment() func() int

func Interfaces1

func Interfaces1()

func Interfaces2

func Interfaces2()

playing with the interface

func IsPalindrome

func IsPalindrome(x int) bool

func SliceOfStructs

func SliceOfStructs()

func SlicesChange

func SlicesChange()

func Strings

func Strings()

func StructInGolang

func StructInGolang()

func SumOddLengthSubarrays

func SumOddLengthSubarrays(arr []int) int

Types

type BankAccount

type BankAccount interface {
	GetBalance() int
	Deposit(i int)
	Withdraw(i int) error
}

type Bitcoin

type Bitcoin struct {
	Balance int
	// contains filtered or unexported fields
}

Bitcoin account

func NewBitcoin

func NewBitcoin() *Bitcoin

func (*Bitcoin) Deposit

func (btc *Bitcoin) Deposit(i int)

func (*Bitcoin) GetBalance

func (btc *Bitcoin) GetBalance() int

func (*Bitcoin) Withdraw

func (btc *Bitcoin) Withdraw(i int) error

type Cat

type Cat struct {
	Dog
}

type ContactList

type ContactList struct {
	ID int
	// contains filtered or unexported fields
}

func NewContactList

func NewContactList(ID int, first, last string, phone int, email, position string) *ContactList

func (*ContactList) Delete

func (a *ContactList) Delete(field string)

func (*ContactList) Get

func (a *ContactList) Get(field string) any

func (*ContactList) GetAll

func (a *ContactList) GetAll() (int, string, string, int, string, string)

func (*ContactList) Update

func (a *ContactList) Update(field, value string)

type Dog

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

type Student

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

type TaskList

type TaskList struct {
	ID int
	// contains filtered or unexported fields
}

func NewTaskList

func NewTaskList(a int, b string, c string, d string, e string, f string, g string) *TaskList

func (*TaskList) Delete

func (a *TaskList) Delete(field string)

func (*TaskList) Get

func (a *TaskList) Get(field string) any

func (*TaskList) GetAll

func (a *TaskList) GetAll() (int, string, string, string, string, string, string)

func (*TaskList) Update

func (a *TaskList) Update(field string, value string)

type WellsFargo

type WellsFargo struct {
	Balance int
}

WellsFargo account

func NewWellsFargo

func NewWellsFargo() *WellsFargo

func (*WellsFargo) Deposit

func (wf *WellsFargo) Deposit(i int)

func (*WellsFargo) GetBalance

func (wf *WellsFargo) GetBalance() int

func (*WellsFargo) Withdraw

func (wf *WellsFargo) Withdraw(i int) error

Jump to

Keyboard shortcuts

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