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:
@@ -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 }
|
||||
|
Reference in New Issue
Block a user