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

vtest: remove pub before main

This commit is contained in:
Enzo Baldisserri 2020-04-17 21:41:54 +02:00 committed by GitHub
parent 3e324befd0
commit fe249ab0c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 8 deletions

View File

@ -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:')

View File

@ -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() {

View File

@ -36,6 +36,6 @@ pub fn callback(req picohttpparser.Request, res mut picohttpparser.Response) {
}
}
pub fn main() {
fn main() {
picoev.new(8088, &callback).serve()
}