import ( "github.com/globocom/tsuru/auth" "fmt" ) func main(){ user := auth.User{Email: "[email protected]", Password: "password123"} fmt.Println(user.Email) // Output: [email protected] }
import ( "github.com/globocom/tsuru/auth" "fmt" ) func main(){ user := auth.User{Email: "[email protected]", Password: "password123"} err := user.Create() if err != nil { fmt.Println(err) } }This example demonstrates how to create a new user in the Tsuru system using the Create() function provided by the package. Both of these examples utilize the User struct provided by the github.com.globocom.tsuru.auth package library, making it clear that this package is designed for user authentication within the Tsuru system.