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
↓ 1 callers
Function
updateName
(p person, name string)
ch07/struct_ptr.go:17
↓ 1 callers
Function
words
generator function that produces data
ch09/pattern4.go:28
↓ 1 callers
Function
words
generator function that produces data
ch09/pattern6.go:40
↓ 1 callers
Function
words
generator function that produces data
ch09/pattern5.go:32
↓ 1 callers
Function
write
write writes the map of anagrams to a file file specified by fname. The use of os.OpenFile (instead of os.Create) is to demonstrate the use of panic()
ch05/anagram2.go:68
↓ 1 callers
Function
write
write writes the map of anagrams to a file file specified by fname. The use of os.OpenFile (instead of os.Create) is to demonstrate the use of panic()
ch05/anagram3.go:72
Method
Add
Add returns the sum of two vectors
ch12/vector/vec.go:78
Function
BenchmarkVectorAdd
(b *testing.B)
ch12/vector/vec_bench_test.go:25
Function
BenchmarkVectorAngle
(b *testing.B)
ch12/vector/vec_bench_test.go:76
Function
BenchmarkVectorDotProd
(b *testing.B)
ch12/vector/vec_bench_test.go:67
Function
BenchmarkVectorEqual1
(b *testing.B)
ch12/vector/vec_bench_test.go:9
Function
BenchmarkVectorEqual2
(b *testing.B)
ch12/vector/vec_bench_test.go:17
Function
BenchmarkVectorMag
(b *testing.B)
ch12/vector/vec_bench_test.go:51
Function
BenchmarkVectorScale
(b *testing.B)
ch12/vector/vec_bench_test.go:43
Function
BenchmarkVectorSub
(b *testing.B)
ch12/vector/vec_bench_test.go:34
Function
BenchmarkVectorUnit
(b *testing.B)
ch12/vector/vec_bench_test.go:59
Method
Eq
Eq compares vector magnitude and directions
ch12/vector/vec.go:52
Function
Find
(table []Currency, filter string)
ch11/curr1/currency.go:50
Function
I
I returns current using Ohm's law when volt and impendence are known
ch06/current/curr.go:5
Function
Ipara
Ipara returns total current in parallel circuit
ch06/current/curr.go:15
Method
IsZero
Test for the zero vector
ch12/vector/vec.go:73
Function
Ivp
Ipv returns current when volt and power are known.
ch06/current/curr.go:10
Function
Load
(path string)
ch11/curr1/currency.go:22
Method
MarshalJSON
()
ch10/json3.go:14
Function
P
P returns power consumed in a circuit when voltage v and current i are known
ch06/power/powlib.go:5
Function
P
P returns power consumed in a circuit when voltage r and resistance r are known.
ch06/power/vr/power.go:5
Function
P
P calculates power when current i and resistance r are know for a circuit
ch06/power/ir/power.go:5
Function
PrintCurrencyInfo
(country, currency, code string)
ch02lib/curr.go:5
Method
Proj
(base Vector)
ch12/vector/vec.go:138
Function
Quux
()
ch06-foo/foo/bazz/quux.go:7
Function
R
R returns resistance using Ohm's law when volt v and current i are known.
ch06/resistor/res.go:5
Method
Read
(p []byte)
ch10/reader1.go:18
Method
Read
(p []byte)
ch10/reader0.go:11
Function
Rpara
Rpara return equivalent resistance for resistors arranged in parallel in a circuit
ch06/resistor/res_equivalence.go:14
Function
Rser
Rser returns equivalent resistance for resistors arrange in series in a circuit
ch06/resistor/res_equivalence.go:5
Function
Rvp
Rvp calculates resistance in a circuit when volt v and power p are known
ch06/resistor/res_power.go:13
Method
ServeHTTP
(resp http.ResponseWriter, req *http.Request)
ch11/httpserv1.go:12
Method
ServeHTTP
(resp http.ResponseWriter, req *http.Request)
ch11/httpserv2.go:10
Method
ServeHTTP
(resp http.ResponseWriter, req *http.Request)
ch11/httpserv0a.go:9
Method
ServeHTTP
(resp http.ResponseWriter, req *http.Request)
ch11/httpserv0.go:9
Method
String
String returns a string representation of the Vector
ch12/vector/vec.go:39
Method
String
()
ch01/metalloids2.go:24
Method
String
()
ch01/example4.go:9
Method
String
()
ch08/interface_impl3.go:35
Method
String
()
ch08/interface_impl3.go:55
Method
String
()
ch08/interface_impl3.go:75
Method
String
()
ch08/interface_impl.go:26
Method
String
()
ch08/interface_impl.go:46
Method
String
()
ch08/interface_impl2.go:33
Method
String
()
ch08/interface_impl2.go:53
Method
String
()
ch08/interface_impl2.go:73
Method
String
()
ch08/other/embedstruct.go:18
Method
String
()
ch08/other/structs.go:17
Method
String
()
ch08/other/structs.go:27
Method
String
()
ch08/other/structs.go:41
Method
String
()
ch08/other/structs.go:54
Method
String
()
ch08/other/structs.go:67
Method
Sub
Sub returns the subtraction of a vector from another
ch12/vector/vec.go:89
Function
TestClientAdd
(t *testing.T)
ch12/client/client_test.go:14
Function
TestDivide
(t *testing.T)
ch01/testexample/divide_test.go:5
Function
TestFindByCode
(t *testing.T)
ch11/curr0/currency_test.go:15
Function
TestFindByNumber
(t *testing.T)
ch11/curr0/currency_test.go:22
Function
TestFindMultiple
(t *testing.T)
ch11/curr0/currency_test.go:29
Function
TestLoad
(t *testing.T)
ch11/curr0/currency_test.go:7
Function
TestNewVector
(t *testing.T)
ch12/vector/vec_test.go:9
Function
TestVectorAdd
(t *testing.T)
ch12/vector/vec_test.go:43
Function
TestVectorAdd
(t *testing.T)
ch12/service/serv_test.go:13
Function
TestVectorAngle
(t *testing.T)
ch12/vector/vec_test.go:131
Function
TestVectorDotProd
(t *testing.T)
ch12/vector/vec_test.go:119
Function
TestVectorDotProd
(t *testing.T)
ch12/service/serv_test.go:41
Function
TestVectorEqual
(t *testing.T)
ch12/vector/vec_test.go:24
Function
TestVectorEqual2
(t *testing.T)
ch12/vector/vec_test.go:34
Function
TestVectorMag
(t *testing.T)
ch12/vector/vec_test.go:89
Function
TestVectorMag
(t *testing.T)
ch12/service/serv_test.go:59
Function
TestVectorScale
(t *testing.T)
ch12/vector/vec_test.go:74
Function
TestVectorString
(t *testing.T)
ch12/vector/vec_test.go:16
Function
TestVectorSub
(t *testing.T)
ch12/vector/vec_test.go:59
Function
TestVectorSub
(t *testing.T)
ch12/service/serv_test.go:27
Function
TestVectorUnit
(t *testing.T)
ch12/vector/vec_test.go:108
Function
TestVectorUnit
(t *testing.T)
ch12/service/serv_test.go:77
Method
UnmarshalJSON
(data []byte)
ch10/json4.go:15
Function
V
V returns the votage of circuit using Ohm's law
ch06/volt/volt.go:5
Function
Vpi
Vip returns the voltage when power p and current i are known
ch06/volt/volt.go:20
Function
Vser
Vser returns the total voltage across a a series circuit
ch06/volt/volt.go:11
Method
Write
(p []byte)
ch10/writer2.go:19
Function
add
add implements the addition operation returning the value op0 + op1
ch05/funcs.go:59
Function
add
(op0 int, op1 int)
ch05/functype.go:5
Method
area
()
ch08/interface_impl3.go:9
Method
area
()
ch08/interface_impl3.go:27
Method
area
()
ch08/interface_impl3.go:47
Method
area
()
ch08/interface_impl3.go:67
Method
area
()
ch08/interface_impl.go:9
Method
area
()
ch08/interface_impl.go:18
Method
area
()
ch08/interface_impl.go:38
Method
area
()
ch08/interface_impl2.go:25
Method
area
()
ch08/interface_impl2.go:45
Method
area
()
ch08/interface_impl2.go:65
Function
bySigKv
bySigKv returns a word-class signature for a given word. It is used as a parameter to the mapWords method defined earlier.
ch05/anagram4.go:63
Function
celToFahr
(c celsius)
ch04/typedef.go:17
Method
circonf
()
ch08/interface_impl3.go:19
← previous
next →
201–300 of 553, ranked by callers