Skip to content

Commit c815eeb

Browse files
committed
The very beginning: project structure.
1 parent fb96c07 commit c815eeb

File tree

5 files changed

+52
-0
lines changed

5 files changed

+52
-0
lines changed

.editorconfig

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[*]
2+
charset = utf-8
3+
end_of_line = lf
4+
insert_final_newline = true
5+
trim_trailing_whitespace = true
6+
7+
[*.v]
8+
indent_style = tab

.gitattributes

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
* text=auto eol=lf
2+
*.bat eol=crlf
3+
4+
**/*.v linguist-language=V
5+
**/*.vv linguist-language=V
6+
**/*.vsh linguist-language=V
7+
**/v.mod linguist-language=V

.gitignore

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Binaries for programs and plugins
2+
main
3+
clap
4+
*.exe
5+
*.exe~
6+
*.so
7+
*.dylib
8+
*.dll
9+
10+
# Ignore binary output folders
11+
bin/
12+
13+
# Ignore common editor/system specific metadata
14+
.DS_Store
15+
.idea/
16+
.vscode/
17+
*.iml
18+
19+
# ENV
20+
.env
21+
22+
# vweb and database
23+
*.db
24+
*.js

src/clap.v

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module clap
2+
3+
// square calculates the second power of `x`
4+
pub fn square(x int) int {
5+
return x * x
6+
}

v.mod

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Module {
2+
name: 'clap'
3+
description: 'Low-level wrapper for CLAP plugin API'
4+
version: '0.1.0'
5+
license: 'MIT'
6+
dependencies: []
7+
}

0 commit comments

Comments
 (0)