fixtures

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Calculate

func Calculate(s Shape)

func Sum

func Sum(a, b int) int

Types

type Circle

type Circle struct {
	Radius float64
}

Circle implements Shape.

func (Circle) Area

func (c Circle) Area() float64

type Shape

type Shape interface {
	Area() float64
}

Shape is a sample interface for testing interface tracing.

type Square

type Square struct {
	Side float64
}

Square implements Shape.

func (Square) Area

func (s Square) Area() float64

Jump to

Keyboard shortcuts

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