From 3e538c8f4ba168f87983975016b8973df81daf46 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 19 Nov 2024 04:38:29 -0600 Subject: start to think about an inteface --- structs.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/structs.go b/structs.go index 8515184..9c5789e 100644 --- a/structs.go +++ b/structs.go @@ -161,3 +161,8 @@ type Node struct { AtW int AtH int } + +type Widget interface { + Node() *Node + String() string +} -- cgit v1.2.3