Skip to content

Commit

Permalink
add pub access modifier to publicly used struct fields (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm authored Apr 9, 2024
1 parent 18a9367 commit 53179f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/api.v
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
module api

pub struct ApiErrorResponse {
pub:
success bool
message string
}

pub struct ApiResponse {
pub:
success bool
message string
}

pub struct ApiSuccessResponse[T] {
pub:
success bool
result T
}

0 comments on commit 53179f2

Please sign in to comment.