Skip to content

Commit

Permalink
add pub access modifier to publicly used struct fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Apr 6, 2024
1 parent 18a9367 commit c7a7790
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 c7a7790

Please sign in to comment.