NewSetting create new setting with multi option
(opts ...Option)
| 42 | |
| 43 | // NewSetting create new setting with multi option |
| 44 | func NewSetting(opts ...Option) *Setting { |
| 45 | cfg := getDefaultSetting() |
| 46 | for _, opt := range opts { |
| 47 | opt(cfg) |
| 48 | } |
| 49 | return cfg |
| 50 | } |
| 51 | |
| 52 | // CTypeChecking set EnabledTypeChecking value |
| 53 | // |
searching dependent graphs…