Class Delcaration in Appium

Classes can be defined in golang with struct keyword. Here a student class is created as a struct type and an object of Student can be created via struct keyword

func main() {
    var student = Student{}
    student.name = "Ram"
    student.age = 10

    println(student.name)
}

type Student struct {
    name string
    age  int
}