/* ------------------------------------------------------------------------------------------------------------------------ ####### data ####### Copyright (c) 2021 mls-361 #################################################### MIT License ####### ------------------------------------------------------------------------------------------------------------------------ */ package data const ( _defaultServerPort = 65530 ) // Server AFAIRE. type Server struct { Port int `json:"port"` } func (s *Server) validate() error { if s.Port == 0 { s.Port = _defaultServerPort } return nil } /* ######################################################################################################## @(°_°)@ ####### */