NewArgsPropertySource function creates a new ArgsPropertySource with the given arguments.
(args *Args)
| 103 | |
| 104 | // NewArgsPropertySource function creates a new ArgsPropertySource with the given arguments. |
| 105 | func NewArgsPropertySource(args *Args) *ArgsPropertySource { |
| 106 | if args == nil { |
| 107 | panic("nil args") |
| 108 | } |
| 109 | |
| 110 | return &ArgsPropertySource{ |
| 111 | args: args, |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | // Name method returns the name of the source. |
| 116 | func (s *ArgsPropertySource) Name() string { |
no outgoing calls