vtest: remove `pub` before main
parent
3e324befd0
commit
fe249ab0c3
|
@ -1,12 +1,10 @@
|
|||
module main
|
||||
|
||||
import (
|
||||
os
|
||||
os.cmdline
|
||||
testing
|
||||
)
|
||||
import os
|
||||
import os.cmdline
|
||||
import testing
|
||||
|
||||
pub fn main() {
|
||||
fn main() {
|
||||
args := os.args
|
||||
if args.last() == 'test' {
|
||||
println('Usage:')
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// import mysql
|
||||
|
||||
// pub fn main() {
|
||||
// fn main() {
|
||||
// conn := mysql.connect('localhost', 'root', '', 'mysql')
|
||||
// res := conn.query('show tables')
|
||||
// for row in res.rows() {
|
||||
|
|
|
@ -36,6 +36,6 @@ pub fn callback(req picohttpparser.Request, res mut picohttpparser.Response) {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn main() {
|
||||
fn main() {
|
||||
picoev.new(8088, &callback).serve()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue