summaryrefslogtreecommitdiff
path: root/share/qtcreator/templates/wizards/projects/nimble/library/src/library/submodule.nim
blob: e9aef4611d5add58bb3328df6146699d496fbb25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# This is just an example to get you started. Users of your library will
# import this file by writing ``import %{ProjectName}/submodule``. Feel free to rename or
# remove this file altogether. You may create additional modules alongside
# this file as required.

type
  Submodule* = object
    name*: string

proc initSubmodule*(): Submodule =
  ## Initialises a new ``Submodule`` object.
  Submodule(name: "Anonymous")