18 lines
346 B
Nim
18 lines
346 B
Nim
type
|
|
Entry* = object
|
|
name*, tag*, description*, link*, category* : string
|
|
|
|
proc getEntryFromHtml(entry : Entry) =
|
|
echo(entry.description)
|
|
|
|
proc test() =
|
|
var entry: Entry
|
|
entry = Entry(name : "testname",description : "testdescription",link : "testlink",category : "testcategory")
|
|
entry.getEntryFromHtml()
|
|
|
|
|
|
|
|
#echo "run test"
|
|
|
|
test()
|