Skip to main content

Posts

Showing posts with the label Go Package

Sciter : GUI Application with Golang using HTML/CSS

GUI library for golang sciter This is the words from Sciter's Web site, Sciter brings a stack of web technologies to desktop UI development. Web designers and developers can reuse their experience and expertise in creating modern looking desktop applications. Various GUI frameworks offer different UI declaration and styling languages, such as QML and  XAML (Microsoft WPF) . On the contrary, Sciter allows using time proven, robust, and flexible HTML and CSS for GUI definition and GPU accelerated rendering.   Before using sciter I already tried other alternatives but none of them was satisfactory as an example first i tried andlabs / ui  library   i already have written a post on it. You can read it on post gui programming with golang .  But this library is still under construction and has no support for production apps. Secondly, I go for electron but the problem was my simple calc like the app was of size 150mb....

golang oauth2 facebook example

Todays most sites are integrated with social platforms like twitter, facebook, google plus for one or other purpose. I am writing this post to show how you can integrate Facebook with your golang app using facebook oauth2. Just Some Word About OAuth2 OAuth 2  is an authorization framework that enables applications to obtain limited access to user accounts on an HTTP service, such as Facebook, GitHub, and DigitalOcean. For More information read this article ReadMore Create App For Facebook To integrate Facebook with your golang app, first of all, you have to need a facebook app_id and app_secret. Those are app identifiers for facebook.  To create an app on facebook you should have an account on Facebook ( and ( think you might have already ). Using your Facebook account login on developer.facebook.com   developer facebook portal  After login click on MyApps dropdown and click on Add a New App Button Create a new Facebook app  C...

Parse Custom Delimeter Seperated File In Golang With encode/csv Package

Encode/csv Package Golang Package csv reads and writes comma-separated values (CSV) files. There are many kinds of CSV files; this package supports the format described in RFC 4180. A csv file contains zero or more records of one or more fields per record. Each record is separated by the newline character. The final record may optionally be followed by a newline character. For More CSV stands for the " comma seperated values ", But you can parse the file with any custom defined delimeter with the encode/csv package of golang. For example ,you can use pipe ( | ) symbol or underscoer (_) as delimiter insted of comma. Writing A Pipe Seperated File With encode/csv Here is the example in which we are encoding the string of array to a csv Here we are sending output to standard output. But you can also store it in file. Output Is First_name|last_name|username Rob|Pike|rob Ken|Thompson|ken Robert|Griesemer|gri You can also read a file w...