MCPcopy Create free account

hub / github.com/PacktPublishing/Learning-Go-Programming / functions

Functions553 in github.com/PacktPublishing/Learning-Go-Programming

↓ 1 callersFunctiondoBinary
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 callersFunctiondoUnary
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 callersFunctiondotProd
(resp http.ResponseWriter, req *http.Request)
ch12/service/serv.go:51
↓ 1 callersFunctiondouble
(val float64)
ch04/pointers2.go:17
↓ 1 callersFunctiondouble
(x *int)
ch04/derefptr.go:17
↓ 1 callersMethoddouble
()
ch08/receiver_ptr.go:15
↓ 1 callersMethoddrive
()
ch08/interface.go:41
↓ 1 callersMethoddrive
()
ch08/structobj.go:36
↓ 1 callersMethoddrive
()
ch08/structobj2.go:36
↓ 1 callersFunctionfharToCel
(f fahrenheit)
ch04/typedef.go:9
↓ 1 callersFunctionfib
(n int)
ch05/func2.go:5
↓ 1 callersFunctionfib
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 callersFunctionfilter
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 callersFunctionfindCurr
(number int)
ch03/ifstmt2.go:32
↓ 1 callersFunctionfindNumber
(num int)
ch03/switchstmt2.go:40
↓ 1 callersMethodfloat
()
ch01/metalloids2.go:14
↓ 1 callersMethodfloat
()
ch01/metalloids.go:14
↓ 1 callersMethodfly
()
ch08/interface.go:57
↓ 1 callersMethodfly
()
ch08/structobj.go:48
↓ 1 callersMethodfly
()
ch08/structobj2.go:59
↓ 1 callersFunctiongreeting
()
ch02/helloworld2.go:20
↓ 1 callersFunctiongreeting
()
ch02/helloworld3.go:20
↓ 1 callersFunctionhalf
modify the value referenced by pointer
ch05/funcpassbyref.go:6
↓ 1 callersFunctionhalf
(val *float64)
ch04/pointers2.go:13
↓ 1 callersMethodhalf
()
ch08/receiver_ptr.go:11
↓ 1 callersFunctionhandleConnection
handle client connection
ch11/tcpserv0.go:39
↓ 1 callersMethodingest
()
ch09/pattern7.go:22
↓ 1 callersFunctioninitMat
()
ch07/arr_type_dec.go:13
↓ 1 callersFunctioninitialize
(nums *numbers)
ch07/arr_ptr.go:11
↓ 1 callersFunctionisDollar
(curr Curr)
ch03/switchstmt.go:26
↓ 1 callersFunctionisDollar2
(curr Curr)
ch03/switchstmt.go:41
↓ 1 callersFunctionisEuro
(curr Curr)
ch03/switchstmt.go:54
↓ 1 callersFunctionisPrime
isPrime tests number n for primality using the "trial division" method to test all factors up to Sqrt(n)
ch05/funcs.go:46
↓ 1 callersFunctionisPrime
(n int)
ch05/func3.go:8
↓ 1 callersFunctionload
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 callersFunctionload
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 callersFunctionload
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 callersFunctionloadNumberMap
()
ch02/makenums.go:23
↓ 1 callersFunctionmag
(resp http.ResponseWriter, req *http.Request)
ch12/service/serv.go:71
↓ 1 callersFunctionmakeAnagrams
makeAnagrams creates the anagram and writes them to a file. It also capture any panic situtaion and recovers gracefully.
ch05/anagram3.go:102
↓ 1 callersFunctionmakeBitMap
()
ch02/makenummap.go:25
↓ 1 callersFunctionmakeEvenNums
(count int, in chan<- int)
ch09/chan1.go:17
↓ 1 callersFunctionmakePerson
()
ch07/struct_type_dec.go:16
↓ 1 callersFunctionmapWords
mapWords maps each word to its associate signature
ch05/anagram2.go:82
↓ 1 callersFunctionmapWords
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 callersFunctionmapWords
mapWords maps each word to its associated signature
ch05/anagram3.go:90
↓ 1 callersFunctionmax
(nums *numbers)
ch07/arr_ptr.go:18
↓ 1 callersFunctionmax
(nums [size]int)
ch07/arr_max_iter.go:23
↓ 1 callersFunctionmax
(lo, hi int, nums [size]int)
ch07/arr_max_recur.go:23
↓ 1 callersFunctionmoles
finds # of moles
ch01/metalloids.go:35
↓ 1 callersFunctionmolesAtoms
find #moles and atoms
ch01/metalloids2.go:43
↓ 1 callersFunctionnewGal
(qty float64)
ch08/other/embedstruct.go:28
↓ 1 callersFunctionnewGal
(qty float64)
ch08/other/structs.go:24
↓ 1 callersFunctionnewOz
(qty float64)
ch08/other/embedstruct.go:81
↓ 1 callersFunctionnewOz
(qty float64)
ch08/other/structs.go:64
↓ 1 callersFunctionnewPlane
(mk, mdl string)
ch08/structobj2.go:52
↓ 1 callersFunctionnewQrt
(qty float64)
ch08/other/embedstruct.go:46
↓ 1 callersFunctionnewQrt
(qty float64)
ch08/other/structs.go:38
↓ 1 callersFunctionnewTruck
(mk, mdl string)
ch08/structobj2.go:40
↓ 1 callersMethodoperate
()
ch08/interface.go:44
↓ 1 callersMethodounce
()
ch08/methods.go:18
↓ 1 callersFunctionparseCommand
(cmdLine string)
ch11/tcpserv0.go:86
↓ 1 callersMethodperim
()
ch08/interface_impl.go:10
↓ 1 callersFunctionprint
(strs []string)
ch07/slice_init.go:34
↓ 1 callersFunctionprintBytes
(str string)
ch07/slice_string.go:26
↓ 1 callersFunctionprintCurrencies
()
ch03/for-range-stmt.go:56
↓ 1 callersFunctionprintDays
(days [7]string)
ch07/arr_types.go:23
↓ 1 callersFunctionprintDays
(days [7]string)
ch07/arr_init.go:52
↓ 1 callersFunctionprintGalaxies
(names *galaxies)
ch07/arr_addr.go:7
↓ 1 callersFunctionprintPi
printPi prints Go's internal representation of Pi.
ch05/funcs.go:21
↓ 1 callersFunctionprintPi
()
ch05/func0.go:8
↓ 1 callersFunctionqrtsToCups
(qrts quart)
ch08/typedef.go:16
↓ 1 callersMethodquart
()
ch08/method_basic.go:7
↓ 1 callersFunctionrecip
recip return reciprocal of a value val as 1/val.
ch06/resistor/lib.go:4
↓ 1 callersFunctionreduceWords
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 callersFunctionremove
removes an entry, error if not found
ch07/map_use.go:43
↓ 1 callersFunctionscale
(factor float64, vector []float64)
ch07/slice_use.go:7
↓ 1 callersFunctionscale2
(factor float64, vector []float64)
ch07/slice_use.go:14
↓ 1 callersFunctionsearch
(w string)
ch03/breakstmt2.go:13
↓ 1 callersFunctionsearch
(w string)
ch03/breakstmt.go:13
↓ 1 callersFunctionshuffle
()
ch03/deferstmt.go:42
↓ 1 callersFunctionsort
()
ch03/deferstmt.go:60
↓ 1 callersFunctionsort
(str string)
ch07/slice_string.go:12
↓ 1 callersFunctionsortByCurrency
()
ch03/forstmt.go:84
↓ 1 callersFunctionsortByNumber
()
ch03/forstmt.go:66
↓ 1 callersFunctionsortRunes
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 callersFunctionsortRunes
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 callersFunctionsortRunes
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 callersFunctionsortRunes
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 callersMethodsplit
(in <-chan string)
ch09/pattern7.go:33
↓ 1 callersFunctionsub
(resp http.ResponseWriter, req *http.Request)
ch12/service/serv.go:31
↓ 1 callersFunctionsum
sum demonstrates variadic parameters it returns the sum of all numers passed to function
ch05/funcs.go:105
↓ 1 callersFunctionsum
(nums ...float64)
ch05/funcvariadic.go:14
↓ 1 callersMethodtoCup
()
ch08/other/embedstruct.go:53
↓ 1 callersMethodtoCup
()
ch08/other/structs.go:44
↓ 1 callersMethodtoOunce
()
ch08/other/embedstruct.go:71
↓ 1 callersMethodtoOunce
()
ch08/other/structs.go:57
↓ 1 callersFunctionunit
(resp http.ResponseWriter, req *http.Request)
ch12/service/serv.go:86
↓ 1 callersFunctionupdateCurrency
(number int, newCurr Curr)
ch03/for-range-stmt.go:46
↓ 1 callersFunctionupdateName
(p *person, name string)
ch07/struct_ptr2.go:17
← previousnext →101–200 of 553, ranked by callers