Skip to content

Instantly share code, notes, and snippets.

View LINDA0759's full-sized avatar

LINDA0759

  • Joined Oct 10, 2025
View GitHub Profile
package main
import "fmt"
type num int
func (n num) Error() string {
if n%3 != 0 {
return fmt.Sprintf("Your number cannot be divisible by 3")
}