mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
module cache fixes; do not allow function names starting with _
This commit is contained in:
@@ -4,11 +4,11 @@
|
||||
|
||||
module term
|
||||
|
||||
fn _format(msg, open, close string) string {
|
||||
pub fn format(msg, open, close string) string {
|
||||
return '\x1b[' + open + 'm' + msg + '\x1b[' + close + 'm'
|
||||
}
|
||||
|
||||
fn _format_rgb(r, g, b int, msg, open, close string) string {
|
||||
pub fn format_rgb(r, g, b int, msg, open, close string) string {
|
||||
return '\x1b[' + open + ';2;' + r.str() + ';' + g.str() + ';' + b.str() + 'm' + msg + '\x1b[' + close + 'm'
|
||||
}
|
||||
|
||||
|
@@ -4,10 +4,3 @@
|
||||
|
||||
module term
|
||||
|
||||
pub fn format(msg, open, close string) string {
|
||||
return _format(msg, open, close)
|
||||
}
|
||||
|
||||
pub fn format_rgb(r, g, b int, msg, open, close string) string {
|
||||
return _format_rgb(r, g, b, msg, open, close)
|
||||
}
|
||||
|
@@ -4,10 +4,3 @@
|
||||
|
||||
module term
|
||||
|
||||
pub fn format(msg, open, close string) string {
|
||||
return _format(msg, open, close)
|
||||
}
|
||||
|
||||
pub fn format_rgb(r, g, b int, msg, open, close string) string {
|
||||
return _format_rgb(r, g, b, msg, open, close)
|
||||
}
|
||||
|
Reference in New Issue
Block a user