mirror of
https://github.com/vlang/v.git
synced 2025-09-17 19:36:35 -04:00
Updated V for Go developers (markdown)
parent
c31f5a62ad
commit
ebe7256411
@ -96,6 +96,7 @@ import (
|
|||||||
b, err := ioutil.ReadFile(path)
|
b, err := ioutil.ReadFile(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
text := string(b)
|
text := string(b)
|
||||||
</pre>
|
</pre>
|
||||||
@ -105,6 +106,7 @@ text := string(b)
|
|||||||
import os
|
import os
|
||||||
text := os.read_file(path)or{
|
text := os.read_file(path)or{
|
||||||
eprintln(err)
|
eprintln(err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user