MCPcopy Create free account

hub / github.com/bitfield/ftl-code / functions

Functions131 in github.com/bitfield/ftl-code

↓ 7 callersMethodGetBook
(ID int)
19.5/bookstore.go:23
↓ 5 callersMethodLen
Len returns the length of the string.
19.3/mytypes.go:7
↓ 4 callersMethodGetAllBooks
()
19.4/bookstore.go:13
↓ 3 callersMethodDouble
()
21.3/mytypes.go:5
↓ 2 callersMethodNetPriceCents
()
18.2/bookstore.go:13
↓ 2 callersMethodSetCategory
(category Category)
23.2/bookstore.go:29
↓ 2 callersMethodSetCategory
(category string)
22.2/bookstore.go:16
↓ 2 callersMethodSetPriceCents
(price int)
22.1/bookstore.go:15
↓ 2 callersFunctioncloseEnough
(a, b, tolerance float64)
8.1/calculator_test.go:134
↓ 1 callersMethodCategory
()
23.2/bookstore.go:37
↓ 1 callersMethodCategory
()
22.2/bookstore.go:24
↓ 1 callersMethodGetAllBooks
()
19.5/bookstore.go:15
↓ 1 callersMethodHello
Hello returns the string "Hello, Gophers!"
20.1/mytypes.go:9
↓ 1 callersMethodNumber
()
23.1/creditcard.go:16
↓ 1 callersMethodToUpper
()
20.3/mytypes.go:10
↓ 1 callersMethodTwice
Twice multiplies its receiver by 2 and returns the result.
19.2/mytypes.go:8
FunctionAdd
Add takes two numbers and returns the result of adding them together.
8.1/calculator.go:13
FunctionAdd
Add takes two numbers and returns the result of adding them together.
4.1/calculator.go:7
FunctionAdd
Add takes two numbers and returns the result of adding them together.
3.1/calculator.go:7
FunctionAdd
Add takes two numbers and returns the result of adding them together.
3.2/calculator.go:7
FunctionAdd
Add takes two numbers and returns the result of adding them together.
8.2/calculator.go:13
FunctionAdd
Add takes two numbers and returns the result of adding them together.
5.1/calculator.go:7
FunctionAdd
Add takes two numbers and returns the result of adding them together.
1.1/calculator.go:7
FunctionAdd
Add takes two numbers and returns the result of adding them together.
6.1/calculator.go:9
FunctionAddMany
(inputs ...float64)
8.3/calculator.go:9
FunctionBuy
Buy takes a Book, decrements its number of copies, and returns the modified book.
12.1/bookstore.go:12
FunctionBuy
Buy takes a Book, decrements its number of copies, and returns the modified book.
13.1/bookstore.go:14
FunctionDivide
Divide takes two numbers and returns the result of dividing the first by the second, or an error if the second value is zero.
8.1/calculator.go:33
FunctionDivide
Divide takes two numbers and returns the result of dividing the first by the second, or an error if the second value is zero.
8.2/calculator.go:33
FunctionDivide
Divide takes two numbers and returns the result of dividing the first by the second, or an error if the second value is zero.
6.1/calculator.go:29
FunctionDivideMany
(inputs ...float64)
8.3/calculator.go:42
FunctionDouble
(input int)
21.1/mytypes.go:3
FunctionDouble
(input *int)
21.2/mytypes.go:3
FunctionGetAllBooks
(catalog map[int]Book)
17.3/bookstore.go:11
FunctionGetAllBooks
(catalog []Book)
15.1/bookstore.go:10
FunctionGetAllBooks
(catalog map[int]Book)
17.2/bookstore.go:11
FunctionGetBook
(catalog map[int]Book, ID int)
17.1/bookstore.go:13
FunctionGetBook
(catalog []Book, ID int)
15.3/bookstore.go:11
FunctionGetBook
(catalog []Book, ID int)
15.2/bookstore.go:11
FunctionGetBook
(catalog map[int]Book, ID int)
16.1/bookstore.go:11
FunctionMultiply
Multiply takes two numbers a and b, and returns their product.
8.1/calculator.go:25
FunctionMultiply
Multiply takes two numbers a and b, and returns their product.
4.1/calculator.go:19
FunctionMultiply
Multiply takes two numbers a and b, and returns their product.
8.2/calculator.go:25
FunctionMultiply
Multiply takes two numbers a and b, and returns their product.
5.1/calculator.go:19
FunctionMultiply
Multiply takes two numbers a and b, and returns their product.
6.1/calculator.go:21
FunctionMultiplyMany
(inputs ...float64)
8.3/calculator.go:20
FunctionNetPriceCents
(b Book)
18.1/bookstore.go:13
FunctionNew
(number string)
23.1/creditcard.go:9
FunctionSqrt
Sqrt returns the square root of its input, or an error for negative inputs.
8.1/calculator.go:42
FunctionSqrt
Sqrt returns the square root of its input, or an error for negative inputs.
8.2/calculator.go:42
FunctionSubtract
Subtract takes two numbers a and b, and returns the result of subtracting b from a.
8.1/calculator.go:19
FunctionSubtract
Subtract takes two numbers a and b, and returns the result of subtracting b from a.
4.1/calculator.go:13
FunctionSubtract
Subtract takes two numbers a and b, and returns the result of subtracting b from a.
3.1/calculator.go:13
FunctionSubtract
Subtract takes two numbers a and b, and returns the result of subtracting b from a.
3.2/calculator.go:13
FunctionSubtract
Subtract takes two numbers a and b, and returns the result of subtracting b from a.
8.2/calculator.go:19
FunctionSubtract
Subtract takes two numbers a and b, and returns the result of subtracting b from a.
5.1/calculator.go:13
FunctionSubtract
Subtract takes two numbers a and b, and returns the result of subtracting b from a.
6.1/calculator.go:15
FunctionSubtractMany
(inputs ...float64)
8.3/calculator.go:31
FunctionTestAdd
(t *testing.T)
8.1/calculator_test.go:10
FunctionTestAdd
(t *testing.T)
4.1/calculator_test.go:8
FunctionTestAdd
(t *testing.T)
3.1/calculator_test.go:8
FunctionTestAdd
(t *testing.T)
3.2/calculator_test.go:8
FunctionTestAdd
(t *testing.T)
5.1/calculator_test.go:8
FunctionTestAdd
(t *testing.T)
1.1/calculator_test.go:8
FunctionTestAdd
(t *testing.T)
6.1/calculator_test.go:8
FunctionTestAddMany
(t *testing.T)
8.3/calculator_test.go:8
FunctionTestBook
(t *testing.T)
12.1/bookstore_test.go:8
FunctionTestBook
(t *testing.T)
10.1/bookstore_test.go:8
FunctionTestBook
(t *testing.T)
13.1/bookstore_test.go:8
FunctionTestBuy
(t *testing.T)
12.1/bookstore_test.go:17
FunctionTestBuy
(t *testing.T)
13.1/bookstore_test.go:17
FunctionTestBuyErrorsIfNoCopiesLeft
(t *testing.T)
13.1/bookstore_test.go:35
FunctionTestDivide
(t *testing.T)
8.1/calculator_test.go:70
FunctionTestDivide
(t *testing.T)
6.1/calculator_test.go:68
FunctionTestDivideInvalid
(t *testing.T)
8.1/calculator_test.go:94
FunctionTestDivideInvalid
(t *testing.T)
6.1/calculator_test.go:91
FunctionTestDivideMany
(t *testing.T)
8.3/calculator_test.go:71
FunctionTestDivideManyInvalid
(t *testing.T)
8.3/calculator_test.go:96
FunctionTestDouble
(t *testing.T)
21.1/mytypes_test.go:8
FunctionTestDouble
(t *testing.T)
21.3/mytypes_test.go:8
FunctionTestDouble
(t *testing.T)
21.2/mytypes_test.go:8
FunctionTestGetAllBooks
(t *testing.T)
17.3/bookstore_test.go:11
FunctionTestGetAllBooks
(t *testing.T)
15.1/bookstore_test.go:10
FunctionTestGetAllBooks
(t *testing.T)
17.2/bookstore_test.go:10
FunctionTestGetAllBooks
(t *testing.T)
19.4/bookstore_test.go:11
FunctionTestGetAllBooks
(t *testing.T)
19.5/bookstore_test.go:11
FunctionTestGetBook
(t *testing.T)
17.1/bookstore_test.go:10
FunctionTestGetBook
(t *testing.T)
15.3/bookstore_test.go:10
FunctionTestGetBook
(t *testing.T)
15.2/bookstore_test.go:10
FunctionTestGetBook
(t *testing.T)
16.1/bookstore_test.go:10
FunctionTestGetBook
(t *testing.T)
19.5/bookstore_test.go:30
FunctionTestGetBookBadIDReturnsError
(t *testing.T)
17.1/bookstore_test.go:26
FunctionTestGetBookBadIDReturnsError
(t *testing.T)
19.5/bookstore_test.go:46
FunctionTestMultiply
(t *testing.T)
8.1/calculator_test.go:50
FunctionTestMultiply
(t *testing.T)
4.1/calculator_test.go:26
FunctionTestMultiply
(t *testing.T)
5.1/calculator_test.go:48
FunctionTestMultiply
(t *testing.T)
6.1/calculator_test.go:48
FunctionTestMultiplyMany
(t *testing.T)
8.3/calculator_test.go:50
FunctionTestMyBuilder
(t *testing.T)
20.2/mytypes_test.go:8
FunctionTestMyBuilderEmbedded
(t *testing.T)
20.4/mytypes_test.go:8
next →1–100 of 131, ranked by callers