Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Learning-Go-Programming
/ functions
Functions
553 in github.com/PacktPublishing/Learning-Go-Programming
⨍
Functions
553
◇
Types & classes
128
↓ 35 callers
Function
New
(elems ...float64)
ch12/vector/vec.go:28
↓ 28 callers
Method
Add
(other Vector)
ch12/vector/vec.go:16
↓ 23 callers
Method
String
()
ch12/vector/vec.go:14
↓ 18 callers
Function
cap
(p *struct{ first, last string })
ch04/derefptr.go:21
↓ 9 callers
Method
Mag
()
ch12/vector/vec.go:21
↓ 8 callers
Method
Write
(p []byte)
ch10/writer1.go:15
↓ 7 callers
Method
Eq
(other Vector)
ch12/vector/vec.go:15
↓ 6 callers
Method
Mag
Mag computes the magnitude of the vector
ch12/vector/vec.go:107
↓ 6 callers
Method
Read
(p []byte)
ch10/reader2.go:17
↓ 6 callers
Function
f
recursive factorial with big package
ch09/factorial.go:6
↓ 6 callers
Function
save
saves into map, blows up upon dup key
ch07/map_use.go:33
↓ 6 callers
Method
start
()
ch08/interface.go:15
↓ 5 callers
Method
DotProd
(other Vector)
ch12/vector/vec.go:19
↓ 5 callers
Method
Unit
()
ch12/vector/vec.go:22
↓ 4 callers
Method
Angle
(other Vector)
ch12/vector/vec.go:20
↓ 4 callers
Function
Load
(path string)
ch11/curr0/currency.go:17
↓ 4 callers
Method
Sub
(other Vector)
ch12/vector/vec.go:17
↓ 4 callers
Method
assertLenMatch
(other Vector)
ch12/vector/vec.go:32
↓ 4 callers
Function
eat
(f food)
ch08/interface_assert.go:23
↓ 4 callers
Function
eat
(f food)
ch08/interface_assert2.go:23
↓ 4 callers
Method
eat
()
ch08/interface_assert2.go:8
↓ 4 callers
Function
find
(name string)
ch03/switchstmt2.go:28
↓ 4 callers
Function
findAny
(val interface{})
ch03/switchstmt2.go:48
↓ 3 callers
Function
Find
(table []Currency, filter string)
ch11/curr0/currency.go:45
↓ 3 callers
Method
Scale
(factor float64)
ch12/vector/vec.go:18
↓ 3 callers
Method
area
()
ch08/interface_impl2.go:9
↓ 3 callers
Function
count
(start, stop, delta int)
ch09/goroutine2.go:21
↓ 3 callers
Function
count
(start, stop, delta int)
ch09/goroutine1.go:14
↓ 3 callers
Function
count
(start, stop, delta int)
ch09/goroutine0.go:18
↓ 3 callers
Function
listCurrs
()
ch03/forstmt.go:58
↓ 3 callers
Function
nameStr
(n name)
ch07/struct_embed.go:21
↓ 3 callers
Function
printAnyType
(val interface{})
ch08/interface_empty.go:19
↓ 3 callers
Function
shapeInfo
(s interface{})
ch08/interface_impl3.go:82
↓ 3 callers
Function
shapeInfo
(s shape)
ch08/interface_impl2.go:80
↓ 2 callers
Method
DotProd
DotProd calculates the dot product using sum of prudcts
ch12/vector/vec.go:124
↓ 2 callers
Method
Eq2
Eq compares each vector components for equality
ch12/vector/vec.go:61
↓ 2 callers
Method
add
(vec0, vec1 vector.SimpleVector)
ch12/client/client.go:25
↓ 2 callers
Function
apply
apply uses a functional idiom to apply the provided function on each numer in nums
ch05/funcs.go:129
↓ 2 callers
Function
galsToQrts
(gal gallon)
ch08/typedef.go:12
↓ 2 callers
Function
headers
return column headers
ch01/metalloids.go:45
↓ 2 callers
Function
move
(v vehicle)
ch08/interface.go:66
↓ 2 callers
Function
newCup
(qty float64)
ch08/other/embedstruct.go:64
↓ 2 callers
Function
newCup
(qty float64)
ch08/other/structs.go:51
↓ 2 callers
Function
newVecClient
(addr string)
ch12/client/client.go:18
↓ 2 callers
Function
nextPair
()
ch03/forstmt2.go:18
↓ 2 callers
Function
print
()
ch03/deferstmt.go:52
↓ 2 callers
Function
print
(strs []string)
ch07/slice_types.go:16
↓ 2 callers
Function
printCurr
(number int)
ch03/ifstmt.go:31
↓ 2 callers
Method
quart
()
ch08/methods.go:15
↓ 2 callers
Function
shapeInfo
(s shape)
ch08/interface_impl.go:53
↓ 2 callers
Method
toQuart
()
ch08/other/embedstruct.go:35
↓ 2 callers
Method
toQuart
()
ch08/other/structs.go:31
↓ 1 callers
Method
Angle
Angle calculates the angle between two vectors (Rad)
ch12/vector/vec.go:134
↓ 1 callers
Function
DivMod
A Euclidean division adapted from the Wikipedia entry http://en.wikipedia.org/wiki/Division_algorithm. You also can find other implementations in the
ch01/testexample/divide.go:10
↓ 1 callers
Function
NewAlphaReader
(source io.Reader)
ch10/reader2.go:13
↓ 1 callers
Function
NewAlphaReader
(source io.Reader)
ch10/reader1.go:14
↓ 1 callers
Function
NewBigNumber
()
ch04/pointers2.go:8
↓ 1 callers
Function
NewChannelWriter
()
ch10/writer1.go:9
↓ 1 callers
Function
NewChannelWriter
()
ch10/writer2.go:13
↓ 1 callers
Function
Pings
create channel
ch01/example5.go:7
↓ 1 callers
Function
PrintCurrencyInfo
* PrintCurrencyInfo outputs the currency information for a given country. This version of the function accepts three string parameters (curr, ctry, c
ch03/currinfo3.go:11
↓ 1 callers
Function
Qux
()
ch06-foo/foo/bazz/qux.go:7
↓ 1 callers
Method
Say
()
ch01/example2.go:9
↓ 1 callers
Method
Scale
Scale scales the vector
ch12/vector/vec.go:100
↓ 1 callers
Method
Serve
(id int)
ch09/sync4.go:37
↓ 1 callers
Method
Start
()
ch09/sync2.go:14
↓ 1 callers
Method
Start
()
ch09/sync3.go:14
↓ 1 callers
Method
Start
()
ch09/sync1.go:10
↓ 1 callers
Method
Start
()
ch09/sync4.go:15
↓ 1 callers
Method
Stop
()
ch09/sync2.go:23
↓ 1 callers
Method
Stop
()
ch09/sync3.go:24
↓ 1 callers
Method
Stop
()
ch09/sync1.go:17
↓ 1 callers
Method
Stop
()
ch09/sync4.go:28
↓ 1 callers
Method
Unit
Unit returns the normalization of the vector
ch12/vector/vec.go:115
↓ 1 callers
Method
Write
(p []byte)
ch10/writer0.go:7
↓ 1 callers
Function
add
(resp http.ResponseWriter, req *http.Request)
ch12/service/serv.go:11
↓ 1 callers
Function
add
(v1, v2 []float64)
ch07/slice_use.go:30
↓ 1 callers
Function
apply
(nums []int, f func(int) int)
ch05/funchighorder.go:5
↓ 1 callers
Function
assertEuro
(c Curr)
ch03/switchstmt2.go:59
↓ 1 callers
Function
atoms
returns # of atoms moles
ch01/metalloids.go:40
↓ 1 callers
Function
avg
avg demonstrates variadic parameters. It returns the average of all values passed to function.
ch05/funcs.go:94
↓ 1 callers
Function
avg
(nums ...float64)
ch05/funcvariadic.go:5
↓ 1 callers
Function
avogadro
()
ch05/funcs.go:25
↓ 1 callers
Function
avogadro
()
ch05/func1.go:5
↓ 1 callers
Function
celToKel
(c celsius)
ch04/typedef.go:21
↓ 1 callers
Function
clone
(v []float64)
ch07/slice_use.go:24
↓ 1 callers
Function
count
(start, stop, delta int)
ch09/goroutine2a.go:17
↓ 1 callers
Function
count
(start, stop, delta int)
ch09/goroutine5.go:19
↓ 1 callers
Function
count
(start, stop, delta int)
ch09/goroutine3.go:20
↓ 1 callers
Function
count
(start, stop, delta int)
ch09/goroutine4.go:20
↓ 1 callers
Method
count
(in <-chan string)
ch09/pattern7.go:46
↓ 1 callers
Method
cup
()
ch08/methods.go:9
↓ 1 callers
Function
cupsToOz
(c cup)
ch08/typedef.go:20
↓ 1 callers
Function
dbl
(val float64)
ch05/funcpassbyval.go:8
↓ 1 callers
Function
div
(op0, op1 int)
ch05/funcret0.go:5
↓ 1 callers
Function
div
div is a simplistic implementtion of a Eucledian division algorithm that returns both quotient and remainer. See example divide.go
ch05/funcs.go:71
↓ 1 callers
Function
div
(dvdn, dvsr int)
ch05/funcret1.go:5
↓ 1 callers
Function
divmod2
(dvdn, dvsr int)
ch05/divide.go:34
↓ 1 callers
Function
do
(steps ...string)
ch05/defer2.go:5
↓ 1 callers
Function
do
(steps ...string)
ch05/defer1.go:5
next →
1–100 of 553, ranked by callers