package
module
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: Feb 5, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
ShowAndTell
- prata om verktygen och ekosystemet (go help)
- visa paketet (utan tester)
- visa github
- visa go doc i terminalen och hur dokumenteringen fungerar
- visa https://godoc.org/github.com/Andilutten/showandtell
- prata om testning i go
- visa paketets tester och fixa showandtell_test med go fmt
- prata om de olika testerna (Test, Benchmark, Example)
- kör go test ./... och fixa testet
- kör go test -bench=.
- prata lite om inbyggda testnings profiler (benchmarking profiler och coverage profiler)
Documentation
¶
Package showandtell is a useless package
full of useless logic. It really doesn't
do anything useful at all.
A foobar object is a useless object
whose sole purpose is to be a part of
a 15 min long show and tell @ H5.
package main
import (
"fmt"
"showandtell"
)
func main() {
var foobar showandtell.Foobar
sum := foobar.Sum(1, 2, 3)
fmt.Println(sum)
}
Output:
6
Source Files
¶
Click to show internal directories.
Click to hide internal directories.