REST JSON API and Dynamic Web Page on Golang This simple Go code allows to connect to PostgreSQL database and query news, filtering them by any parameter. Database queries are performed using raw SQL queries and using wildcards when there is no parameters to filter by.