From d91b4e9c08029c8c2335a80ef6db831bc4908730 Mon Sep 17 00:00:00 2001 From: "JaringanKantor.com" Date: Fri, 15 Oct 2021 23:12:09 +0700 Subject: [PATCH] Update kalkulator.go --- kalkulator.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/kalkulator.go b/kalkulator.go index 94fe2e6..5a4403b 100644 --- a/kalkulator.go +++ b/kalkulator.go @@ -2,23 +2,6 @@ package module import "fmt" -type PersegiInterface interface { - Keliling() int - Luas() int -} - -type InputPersegi struct { - a, b int -} - -func (in InputPersegi) Keliling() int { - return (in.a + in.b) * 2 -} - -func (in InputPersegi) Luas() int { - return in.a * in.b -} - func About() { fmt.Println("Ini adalah fungsi kalkulator") }