config.go 180 B

123456789101112131415
  1. package tcp
  2. type Config struct {
  3. ConnectionReuse bool
  4. }
  5. func (this *Config) Apply() {
  6. effectiveConfig = this
  7. }
  8. var (
  9. effectiveConfig = &Config{
  10. ConnectionReuse: true,
  11. }
  12. )