azharprabudi / api-plastik

Api Plastik is a simple golang application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hi !! this is my first time, using golang for development app.

Here the rules i want to apply to this repo :

  1. Give domain prefix at function, to create a new instance
        
    func NewSellerService() {} 
        
      
  2. Give domain prefix at variable name
        
    sellerID := "examples"
        
      
  3. If there is one dependency to service, or another just give service name dont give a namespace. (but for domain, just give a service name)
        
    (GOOD)
    type SellerPresentation struct {
      service: "xxxx"
    }
    (BAD)
    type SellerPresentation struct {
      sellerService: "xxxx" // if there is one service dont give a namespace, but if more then give it
    }
        
      
  4. Dont give separator at filename
  5. Dont forget to create testing unit (later)

About

Api Plastik is a simple golang application


Languages

Language:Go 99.6%Language:Dockerfile 0.4%Language:Shell 0.1%