Payment Gateway | Go | Stripe | Vault
In my previous posts, I have talked about how to build your own Google NLP API. You are a smart developer and you got a great idea 💡. You build an amazing API with useful functions. The only thing you are missing is a validated business case. I think the eaiset way to prove the use case is to put it in the market and see whether or not people are willing to pay for it.
Go NLP API | Build Your Own
In my previous posts, I have talked about building a small backend server to handle HTTP POST request. We also have tried out the Google NLP and we dived into the topic of NLTK. Well, now we know how to create a Go function to handle HTTP request and we understand the idea of Natural language Processing. Why not building your own Google NLP API?
Let’s now look at the key functions // Now we need to create a function to parse and tag all the data // There is a pre-built lib you can use - "gopkg.
Twilio Message Bot 📟
So you want a personal chatbot to handle your messages. Let’s build a easy twilio bot to handle and filter your incoming messages and calls - your personal virtual assistant 📟. Let’s start with a simple user case. I want to have a 📟 to recieve the SMS messages and send me a summary about who are contacting me, what messages have them sent and what are their contact numbers.
Lambda Logshipper
How can you easily move your Cloudwatch logstream to another platform or log collector endpoints? The easiest way is to ship the Cloudwatch logstream through a socket client. This is an example of a small Golang lambda function to ship aws cloudwatch log stream to a tcp endpoint.
you will need a socket client:
func SocketClient(m []byte) { conn, err := net.Dial("tcp", "your_tcp_endpoint:your_port") defer conn.Close() if err != nil { fmt.
Web Scraper | Golang
So you are interested in news and events and you want to track the latest news and headlines. And I guess you are familiar with the concept of RSS Rich Site Summary. Okay,😃Let’s start to build a simple Golang application to fetch the latest news and headlines with in a second.
package main import ( "fmt" "github.com/mmcdole/gofeed" ) func feed(){ fp := gofeed.NewParser() feed, err := fp.ParseURL("http://feeds.reuters.com/reuters/UKTopNews") if err != nil { panic(err) } for _, item := range feed.