main is the entry point for the application.
()
| 10 | |
| 11 | // main is the entry point for the application. |
| 12 | func main() { |
| 13 | // Create a value of type Admin from the entities package. |
| 14 | a := entities.Admin{ |
| 15 | Rights: 10, |
| 16 | } |
| 17 | |
| 18 | // Set the exported fields from the unexported |
| 19 | // inner type. |
| 20 | a.Name = "Bill" |
| 21 | a.Email = "bill@email.com" |
| 22 | |
| 23 | fmt.Printf("User: %v\n", a) |
| 24 | } |
nothing calls this directly
no outgoing calls
no test coverage detected