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
doBinary
doBinary illustrates first-order function capability in Go. It invokes invokes any function that takes two ints and return an integer as a result (i.e
ch05/funcs.go:123
↓ 1 callers
Function
doUnary
doUnary uses first-order functionality of Go to implement a function that can apply unary operation to any given integer (i.e. sqr(3), log(1000), etc)
ch05/funcs.go:116
↓ 1 callers
Function
dotProd
(resp http.ResponseWriter, req *http.Request)
ch12/service/serv.go:51
↓ 1 callers
Function
double
(val float64)
ch04/pointers2.go:17
↓ 1 callers
Function
double
(x *int)
ch04/derefptr.go:17
↓ 1 callers
Method
double
()
ch08/receiver_ptr.go:15
↓ 1 callers
Method
drive
()
ch08/interface.go:41
↓ 1 callers
Method
drive
()
ch08/structobj.go:36
↓ 1 callers
Method
drive
()
ch08/structobj2.go:36
↓ 1 callers
Function
fharToCel
(f fahrenheit)
ch04/typedef.go:9
↓ 1 callers
Function
fib
(n int)
ch05/func2.go:5
↓ 1 callers
Function
fib
fib is a simple interative implementation of a function that lists all fibonacci numbers up to n position in the sequence
ch05/funcs.go:31
↓ 1 callers
Function
filter
filter uses Go's first-order function support to build a functional idiom where the provided number list by applying f()
ch05/funcs.go:138
↓ 1 callers
Function
findCurr
(number int)
ch03/ifstmt2.go:32
↓ 1 callers
Function
findNumber
(num int)
ch03/switchstmt2.go:40
↓ 1 callers
Method
float
()
ch01/metalloids2.go:14
↓ 1 callers
Method
float
()
ch01/metalloids.go:14
↓ 1 callers
Method
fly
()
ch08/interface.go:57
↓ 1 callers
Method
fly
()
ch08/structobj.go:48
↓ 1 callers
Method
fly
()
ch08/structobj2.go:59
↓ 1 callers
Function
greeting
()
ch02/helloworld2.go:20
↓ 1 callers
Function
greeting
()
ch02/helloworld3.go:20
↓ 1 callers
Function
half
modify the value referenced by pointer
ch05/funcpassbyref.go:6
↓ 1 callers
Function
half
(val *float64)
ch04/pointers2.go:13
↓ 1 callers
Method
half
()
ch08/receiver_ptr.go:11
↓ 1 callers
Function
handleConnection
handle client connection
ch11/tcpserv0.go:39
↓ 1 callers
Method
ingest
()
ch09/pattern7.go:22
↓ 1 callers
Function
initMat
()
ch07/arr_type_dec.go:13
↓ 1 callers
Function
initialize
(nums *numbers)
ch07/arr_ptr.go:11
↓ 1 callers
Function
isDollar
(curr Curr)
ch03/switchstmt.go:26
↓ 1 callers
Function
isDollar2
(curr Curr)
ch03/switchstmt.go:41
↓ 1 callers
Function
isEuro
(curr Curr)
ch03/switchstmt.go:54
↓ 1 callers
Function
isPrime
isPrime tests number n for primality using the "trial division" method to test all factors up to Sqrt(n)
ch05/funcs.go:46
↓ 1 callers
Function
isPrime
(n int)
ch05/func3.go:8
↓ 1 callers
Function
load
load loads the content of the specified file's name into memory as an slice (array) of strings. Notice the function also returns an error value that
ch05/anagram2.go:44
↓ 1 callers
Function
load
load loads the content of the specified file's name into memory as an slice (array) of strings. Notice the function also returns an error value that
ch05/anagram1.go:48
↓ 1 callers
Function
load
load loads the content of the specified file's name into memory as an slice (array) of strings. Notice the function also returns an error value that
ch05/anagram3.go:48
↓ 1 callers
Function
loadNumberMap
()
ch02/makenums.go:23
↓ 1 callers
Function
mag
(resp http.ResponseWriter, req *http.Request)
ch12/service/serv.go:71
↓ 1 callers
Function
makeAnagrams
makeAnagrams creates the anagram and writes them to a file. It also capture any panic situtaion and recovers gracefully.
ch05/anagram3.go:102
↓ 1 callers
Function
makeBitMap
()
ch02/makenummap.go:25
↓ 1 callers
Function
makeEvenNums
(count int, in chan<- int)
ch09/chan1.go:17
↓ 1 callers
Function
makePerson
()
ch07/struct_type_dec.go:16
↓ 1 callers
Function
mapWords
mapWords maps each word to its associate signature
ch05/anagram2.go:82
↓ 1 callers
Function
mapWords
mapWords loads the content of the specified file's name into and uses the specified function to generate a tuple containng the word-class signature an
ch05/anagram4.go:41
↓ 1 callers
Function
mapWords
mapWords maps each word to its associated signature
ch05/anagram3.go:90
↓ 1 callers
Function
max
(nums *numbers)
ch07/arr_ptr.go:18
↓ 1 callers
Function
max
(nums [size]int)
ch07/arr_max_iter.go:23
↓ 1 callers
Function
max
(lo, hi int, nums [size]int)
ch07/arr_max_recur.go:23
↓ 1 callers
Function
moles
finds # of moles
ch01/metalloids.go:35
↓ 1 callers
Function
molesAtoms
find #moles and atoms
ch01/metalloids2.go:43
↓ 1 callers
Function
newGal
(qty float64)
ch08/other/embedstruct.go:28
↓ 1 callers
Function
newGal
(qty float64)
ch08/other/structs.go:24
↓ 1 callers
Function
newOz
(qty float64)
ch08/other/embedstruct.go:81
↓ 1 callers
Function
newOz
(qty float64)
ch08/other/structs.go:64
↓ 1 callers
Function
newPlane
(mk, mdl string)
ch08/structobj2.go:52
↓ 1 callers
Function
newQrt
(qty float64)
ch08/other/embedstruct.go:46
↓ 1 callers
Function
newQrt
(qty float64)
ch08/other/structs.go:38
↓ 1 callers
Function
newTruck
(mk, mdl string)
ch08/structobj2.go:40
↓ 1 callers
Method
operate
()
ch08/interface.go:44
↓ 1 callers
Method
ounce
()
ch08/methods.go:18
↓ 1 callers
Function
parseCommand
(cmdLine string)
ch11/tcpserv0.go:86
↓ 1 callers
Method
perim
()
ch08/interface_impl.go:10
↓ 1 callers
Function
print
(strs []string)
ch07/slice_init.go:34
↓ 1 callers
Function
printBytes
(str string)
ch07/slice_string.go:26
↓ 1 callers
Function
printCurrencies
()
ch03/for-range-stmt.go:56
↓ 1 callers
Function
printDays
(days [7]string)
ch07/arr_types.go:23
↓ 1 callers
Function
printDays
(days [7]string)
ch07/arr_init.go:52
↓ 1 callers
Function
printGalaxies
(names *galaxies)
ch07/arr_addr.go:7
↓ 1 callers
Function
printPi
printPi prints Go's internal representation of Pi.
ch05/funcs.go:21
↓ 1 callers
Function
printPi
()
ch05/func0.go:8
↓ 1 callers
Function
qrtsToCups
(qrts quart)
ch08/typedef.go:16
↓ 1 callers
Method
quart
()
ch08/method_basic.go:7
↓ 1 callers
Function
recip
recip return reciprocal of a value val as 1/val.
ch06/resistor/lib.go:4
↓ 1 callers
Function
reduceWords
reduceWords creates a map of the array of tuples produced the mapping step. Each word is collected and mapped to its associated signature.
ch05/anagram4.go:69
↓ 1 callers
Function
remove
removes an entry, error if not found
ch07/map_use.go:43
↓ 1 callers
Function
scale
(factor float64, vector []float64)
ch07/slice_use.go:7
↓ 1 callers
Function
scale2
(factor float64, vector []float64)
ch07/slice_use.go:14
↓ 1 callers
Function
search
(w string)
ch03/breakstmt2.go:13
↓ 1 callers
Function
search
(w string)
ch03/breakstmt.go:13
↓ 1 callers
Function
shuffle
()
ch03/deferstmt.go:42
↓ 1 callers
Function
sort
()
ch03/deferstmt.go:60
↓ 1 callers
Function
sort
(str string)
ch07/slice_string.go:12
↓ 1 callers
Function
sortByCurrency
()
ch03/forstmt.go:84
↓ 1 callers
Function
sortByNumber
()
ch03/forstmt.go:66
↓ 1 callers
Function
sortRunes
sortRunes is a simple insertion sort that sorts the runes of the given string. By sorting the unicode chars of the string (i.e. "morning" -> "gimnnor"
ch05/anagram2.go:25
↓ 1 callers
Function
sortRunes
sortRunes is a simple insertion sort that sorts the runes of the given string. By sorting the unicode chars of the string (i.e. "morning" -> "gimnnor"
ch05/anagram1.go:25
↓ 1 callers
Function
sortRunes
sortRunes is a simple insertion sort that sorts the runes of the given string. By sorting the unicode chars of the string (i.e. "morning" -> "gimnnor"
ch05/anagram4.go:24
↓ 1 callers
Function
sortRunes
sortRunes is a simple insertion sort that sorts the runes of the given string. By sorting the unicode chars of the string (i.e. "morning" -> "gimnnor"
ch05/anagram3.go:29
↓ 1 callers
Method
split
(in <-chan string)
ch09/pattern7.go:33
↓ 1 callers
Function
sub
(resp http.ResponseWriter, req *http.Request)
ch12/service/serv.go:31
↓ 1 callers
Function
sum
sum demonstrates variadic parameters it returns the sum of all numers passed to function
ch05/funcs.go:105
↓ 1 callers
Function
sum
(nums ...float64)
ch05/funcvariadic.go:14
↓ 1 callers
Method
toCup
()
ch08/other/embedstruct.go:53
↓ 1 callers
Method
toCup
()
ch08/other/structs.go:44
↓ 1 callers
Method
toOunce
()
ch08/other/embedstruct.go:71
↓ 1 callers
Method
toOunce
()
ch08/other/structs.go:57
↓ 1 callers
Function
unit
(resp http.ResponseWriter, req *http.Request)
ch12/service/serv.go:86
↓ 1 callers
Function
updateCurrency
(number int, newCurr Curr)
ch03/for-range-stmt.go:46
↓ 1 callers
Function
updateName
(p *person, name string)
ch07/struct_ptr2.go:17
← previous
next →
101–200 of 553, ranked by callers