Posts Tagged open source

Sending mail using TLS with Go

As I did not find any example of go program which is sending UTF-8 mail with TLS, I decided to create my own go package with this functionality + example, find more details here: https://github.com/bykovme/tlsmailgo-mascot-mail

 

Mail message can be sent this easy:

 

mail := tlsmail.TLSMail{
	Host:     "mail.your_favorite_hosting_provider.here",  
	Port:     "465",                           
	Sender:   "noreply@mail_from.here",        
	Password: "123456",                        
	TO:       []string{"mail1@mail_to.here"},
	Subject:  subject,                       
	Body:     body,                          
}

err := mail.Send()

if err != nil {
	log.Println("Mail send failure: " + err.Error())
} else {
	log.Println("Mail sent successfully")
}

Enjoy!

, , , , ,

Leave a comment

Config library for golang

Publishing config library to be used with go, it stores/loads structure as JSON file, so you can use it to keep options of your app: github.com/bykovme/goconfig

Example of using: github.com/bykovme/goconfig/blob/master/example/load_config.go

There are only 5 functions:

  • SaveConfig – saving configuration from structure into the file
  • LoadConfig – loading configuration from file into the structure
  • SearchForConfigFile – search for config file in different locations
  • GetLocalPath – get current path where executable app is running
  • GetUserPath – get user home folder

, , ,

Leave a comment

Night Notes MD – welcome to the world of open source

Last years I’m using my own cross platform app (developed with QT/C++) to write and keep notes on my Mac and Windows computers, it is simple markdown editor/viewer which turns any your folder with text or markdown files into convenient app.

Additional features on top of standard Markdown:

  • internal links
  • keeping passwords, copying the password to clipboard by clicking links

Today I decided to give the app to the world and  make it open source

Screen Shot 2016-06-01 at 18.45.05

Link to the project: https://gitlab.com/bykovme/nightnotes

If you want to try the app immediately, you can download dmg and install the app on your Mac OSX from here: https://gitlab.com/bykovme/nightnotes/tree/master/Downloads/Mac

Enjoy

, , ,

Leave a comment