Documentation ¶
Index ¶
- Variables
- func ArraysDontChange()
- func CarIndustry()
- func Composition()
- func Concurrency()
- func ContainsDUplicate(nums []int) bool
- func ContainsNearbyDuplicate(nums []int, k int) bool
- func ContainsNearbyDuplicateWithMap(nums []int, k int) bool
- func CountEven(num int) int
- func Fibonacci(x int) int
- func FibonacciWithClosure() func() int
- func FindRoot(n float64) float64
- func FizzBuzz(n int) []string
- func GetAverageScore1() float32
- func HelloString()
- func Increment() func() int
- func Interfaces1()
- func Interfaces2()
- func IsPalindrome(x int) bool
- func SliceOfStructs()
- func SlicesChange()
- func Strings()
- func StructInGolang()
- func SumOddLengthSubarrays(arr []int) int
- type BankAccount
- type Bitcoin
- type Cat
- type ContactList
- type Dog
- type Student
- type TaskList
- type WellsFargo
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 ContainsNearbyDuplicate ¶
func FibonacciWithClosure ¶
func FibonacciWithClosure() func() int
func GetAverageScore1 ¶
func GetAverageScore1() float32
func HelloString ¶
func HelloString()
func Interfaces1 ¶
func Interfaces1()
func IsPalindrome ¶
func SliceOfStructs ¶
func SliceOfStructs()
func SlicesChange ¶
func SlicesChange()
func StructInGolang ¶
func StructInGolang()
func SumOddLengthSubarrays ¶
Types ¶
type BankAccount ¶
type Bitcoin ¶
type Bitcoin struct { Balance int // contains filtered or unexported fields }
Bitcoin account
func NewBitcoin ¶
func NewBitcoin() *Bitcoin
func (*Bitcoin) GetBalance ¶
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) Update ¶
func (a *ContactList) Update(field, value string)
type TaskList ¶
type TaskList struct { ID int // contains filtered or unexported fields }
func NewTaskList ¶
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
Click to show internal directories.
Click to hide internal directories.