...

Package mult

import "cmd/compile/internal/test/testdata/pgo/devirtualize/mult.pkg"
Overview
Index

Overview ▾

func MultFn

func MultFn(a, b int64) int64

func NegMultFn

func NegMultFn(a, b int64) int64

type Mult

type Mult struct{}

func (Mult) Multiply

func (Mult) Multiply(a, b int) int

type MultFunc

N.B. Different types than AddFunc to test intra-line disambiguation.

type MultFunc func(int64, int64) int64

func MultClosure

func MultClosure() MultFunc

func NegMultClosure

func NegMultClosure() MultFunc

type Multiplier

type Multiplier interface {
    Multiply(a, b int) int
}

type NegMult

type NegMult struct{}

func (NegMult) Multiply

func (NegMult) Multiply(a, b int) int