louis's Blog

louis's Avatar Image
Software developer #Go #CommonLisp #JS #SQL. #LispWorks user. Soft spots for #Emacs #SmallWeb. Recently becoming #OpenBSD enthusiast. #LinuxMint as a daily driver. Recovering Apple addict.

Author of the Tuner app for Linux.

Other hobbies: #Running #FireFighter #StarTrek
← All posts

Very unfortunate that in Go when you have a type definition like

type MyDate time.Time

you loose all the methods of time.Time, including un-/marshalling, while on the other side you cannot define your own methods on non-local types (like time.Time).

Am I overlooking something or is this just a bad design choice?

#golang #go

To like or reply, open original post on Emacs.ch