Golang ProgramsGolang Programs

Beego Database Migration

12/10/2017 10:23 AM

Beego migrations provide mechanisms for creating and modifying database tables. Migrations are database agnostic. This means you do not have to worry about the specific SQL syntax for the database engine that you are creating tables for. Migrations also allow you to roll back the most recent changes that you made to a database.Read More
Golang provides a number of built-in date time functions which help in performing several operations while dealing with date and time. Golang time package is a part of the core. There is no installation required to use this package only you need to import "time" package. A list of important Golang time examples are as follow:Read More
Slice sorting or searching functions allow you to interact with and manipulate slice in various ways. Golang sort functions are the part of the core. There is no installation required to use this function only you need to import "sort" package.Read More
Implementing a Go interface is done implicitly. In Go, there is no need to explicitly implement an interface into a concrete type by specifying any keyword. To implement an interface into a concrete type, just provide the methods with the same signature that is defined in the interface typeRead More

Methods and Objects

7/29/2017 5:59 PM

In object-oriented programming, an object is simply a value or variable that has methods, and a method is a function associated with a particular type. An object-oriented program is one that uses methods to express the properties and operations of each data structure, hence there is no need to access the object representation directly.Read More
Basic routing is meant to route your request to an appropriate controller. The input values can be easily retrieved in Beego. No matter what method was used "Get" or "Post".Read More
In MVC framework, the letter "V" stands for Views. It separates the application logic and the presentation logic. Views are stored in views directory. Generally, the view contains the HTML which will be served by the application.Read More
In this tutorial we will provide you with detailed instructions on how to install Beego Framework on Windows system / server. Follow these guidelines if you want to perform a new, manual installation of the latest stable Beego v1.8.0.Read More