add buildj_log

This commit is contained in:
2019-11-24 16:37:43 +08:00
parent e3d2160960
commit 16126cd6da
2 changed files with 9 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ module main
// import time // import time
// import json // import json
import buildj_util import buildj_util
import buildj_log
//import termcolor //import termcolor
// https://bitbucket.org/hatterjiang/archived-study_v/src/master/buildjs.v // https://bitbucket.org/hatterjiang/archived-study_v/src/master/buildjs.v
@@ -16,11 +17,11 @@ const (
fn main() { fn main() {
buildj_util.check_os() buildj_util.check_os()
show_buildjs_head() show_buildj_head()
println(buildj_util.get_readable_size(1000000)) buildj_log.print_log(buildj_util.get_readable_size(1000000))
} }
fn show_buildjs_head() { fn show_buildj_head() {
println('${BUILDJ_NAME} - version: ${BUILDJ_VERSION}') println('${BUILDJ_NAME} - version: ${BUILDJ_VERSION}')
} }

5
buildj_log/buildj_log.v Normal file
View File

@@ -0,0 +1,5 @@
module buildj_log
pub fn print_log(msg string) {
println(msg)
}