mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
doc: add a subheading for creating new modules (#16188)
This commit is contained in:
parent
00ec41e0a9
commit
d3fcb6bca0
@ -94,6 +94,7 @@ To do so, run the command `v up`.
|
||||
* [Printing custom types](#printing-custom-types)
|
||||
* [Dumping expressions at runtime](#dumping-expressions-at-runtime)
|
||||
* [Modules](#modules)
|
||||
* [Create modules](#create-modules)
|
||||
* [init functions](#init-functions)
|
||||
* [Type Declarations](#type-declarations)
|
||||
* [Interfaces](#interfaces)
|
||||
@ -2877,6 +2878,8 @@ the expression itself, and the expression value.
|
||||
Every file in the root of a folder is part of the same module.
|
||||
Simple programs don't need to specify module name, in which case it defaults to 'main'.
|
||||
|
||||
### Create modules
|
||||
|
||||
V is a very modular language. Creating reusable modules is encouraged and is
|
||||
quite easy to do.
|
||||
To create a new module, create a directory with your module's name containing
|
||||
|
Loading…
Reference in New Issue
Block a user