mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
examples: show how to call a simple v module from python (#13105)
This commit is contained in:
parent
535317eba3
commit
5e85d4cb39
4 changed files with 17 additions and 1 deletions
6
examples/call_v_from_python/test.v
Normal file
6
examples/call_v_from_python/test.v
Normal file
|
@ -0,0 +1,6 @@
|
|||
module test
|
||||
|
||||
[export: 'square']
|
||||
fn square(i int) int {
|
||||
return i * i
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue