Skip to main content
  1. Projects/

macaroon

·75 words·1 min
Jake Roggenbuck
Author
Jake Roggenbuck
I am currently studying Computer Science

Macaroon - Go Macros & Preprocessor
Go
#

Add C style macros to code in Go. Not to be confused with go-macaroon/macaroon about “Cookies with Contextual Caveats for Decentralized Authorization in the Cloud”.

Quick Start #

Use the set keyword to define the value of a simple macro.

Before #

package main

#set NAME "jake"

func main() {
    fmt.Println(NAME)
}

After #

package main

func main() {
    fmt.Println("jake")
}

Running #

macaroon main.gomac && go build