showandtell

package module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

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

Overview

Package showandtell is a useless package full of useless logic. It really doesn't do anything useful at all.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Foobar

type Foobar struct{}

A foobar object is a useless object whose sole purpose is to be a part of a 15 min long show and tell @ H5.

Example
package main

import (
	"fmt"
	"showandtell"
)

func main() {
	var foobar showandtell.Foobar
	sum := foobar.Sum(1, 2, 3)
	fmt.Println(sum)
}
Output:

6

func (Foobar) Sum

func (f Foobar) Sum(values ...int) (sum int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL