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

public enums + more public structs (libs/examples/tests)

This commit is contained in:
Alexander Medvednikov
2019-10-24 13:19:27 +03:00
parent 1a2db54bc1
commit 3d6bdc2dc3
10 changed files with 23 additions and 13 deletions

View File

@@ -4,14 +4,14 @@
module gx
struct Color {
pub struct Color {
pub:
r int
g int
b int
}
const (
pub const (
// Primary colors
Blue = Color { r: 0, g: 0, b: 255 }
Red = Color { r: 255, g: 0, b: 0 }