Skip to content

Commit

Permalink
feat: add schema and schema instance to package helloworld
Browse files Browse the repository at this point in the history
Signed-off-by: zongzhe <zongzhe1024@163.com>
  • Loading branch information
zong-zhe committed Oct 12, 2024
1 parent ab23503 commit e54c745
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions helloworld/0.1.3/kcl.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "helloworld"
edition = "*"
version = "0.1.3"
description = "This is a hello world package that contains a schema and a schema instance"

Empty file added helloworld/0.1.3/kcl.mod.lock
Empty file.
8 changes: 8 additions & 0 deletions helloworld/0.1.3/main.k
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
schema HelloWorldSchema:
msg: str

The_fisrt_schema_inst = HelloWorldSchema{
msg: "Hello Schema!"
}

The_first_kcl_program = 'Hello World!'

0 comments on commit e54c745

Please sign in to comment.