fixtures

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 1 Imported by: 0

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