Init
This commit is contained in:
17
scrap.nim
Normal file
17
scrap.nim
Normal file
@@ -0,0 +1,17 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user