Initial commit following nimble init.
This commit is contained in:
7
src/namespaced_logging.nim
Normal file
7
src/namespaced_logging.nim
Normal file
@ -0,0 +1,7 @@
|
||||
# This is just an example to get you started. A typical library package
|
||||
# exports the main API in this file. Note that you cannot rename this file
|
||||
# but you can remove it if you wish.
|
||||
|
||||
proc add*(x, y: int): int =
|
||||
## Adds two files together.
|
||||
return x + y
|
12
src/namespaced_logging/submodule.nim
Normal file
12
src/namespaced_logging/submodule.nim
Normal file
@ -0,0 +1,12 @@
|
||||
# This is just an example to get you started. Users of your library will
|
||||
# import this file by writing ``import namespaced_logging/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")
|
Reference in New Issue
Block a user