Documentation ¶ Index ¶ type Config func New(addr string, port int, options ...Option) *Config func (c *Config) String() string type Option func WithRecvTimeout(v time.Duration) Option func WithSendTimeout(v time.Duration) Option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { Addr string Port int RecvTimeout time.Duration SendTimeout time.Duration } func New ¶ func New(addr string, port int, options ...Option) *Config func (*Config) String ¶ func (c *Config) String() string type Option ¶ type Option func(c *Config) Option Pattern を実現するために用意 func WithRecvTimeout ¶ func WithRecvTimeout(v time.Duration) Option Option Pattern func WithSendTimeout ¶ func WithSendTimeout(v time.Duration) Option Option Pattern Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.