1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vweb: fix duplicate fn error with multiple templates

This commit is contained in:
Alexander Medvednikov
2020-06-09 12:43:16 +02:00
parent 1396dc1c89
commit b3e416fb52
4 changed files with 23 additions and 7 deletions

16
vlib/strings/strings.v Normal file
View File

@ -0,0 +1,16 @@
module strings
//import rand
// random returns a random string with `n` characters
/*
// TODO
pub fn random(n int) string {
buf := vmalloc(n)
for i in 0..n {
buf[i] = rand.next()
}
return tos(buf)
}
*/