File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -195,13 +195,13 @@ end
195
195
` TypedStructor ` offers a plugin system to enhance functionality.
196
196
For details on creating a plugin, refer to the ` TypedStructor.Plugin ` module.
197
197
198
- Here is a example of ` TypedStructor .Plugins.Accessible` plugin to define ` Access ` behavior for the struct.
198
+ Here is a example of ` Guides .Plugins.Accessible` plugin to define ` Access ` behavior for the struct.
199
199
``` elixir
200
200
defmodule User do
201
201
use TypedStructor
202
202
203
203
typed_structor do
204
- plugin TypedStructor .Plugins .Accessible
204
+ plugin Guides .Plugins .Accessible
205
205
206
206
field :id , pos_integer ()
207
207
field :name , String .t ()
212
212
user = %User {id: 1 , name: " Phil" , age: 20 }
213
213
get_in (user, [:name ]) # => "Phil"
214
214
```
215
+
216
+ > #### Plugins guides {: .tip}
217
+ >
218
+ > Here are some [ Plugin Guides] ( guides/plugins/introduction.md )
219
+ > for creating your own plugins. Please check them out
220
+ > and feel free to copy-paste the code.
You can’t perform that action at this time.
0 commit comments