Skip to content

Instantly share code, notes, and snippets.

View Ompluscator's full-sized avatar
💬
Blogging

Marko Milojevic Ompluscator

💬
Blogging
View GitHub Profile
@Ompluscator
Ompluscator / main.go
Created September 25, 2021 11:41
Go Proxy Full
package main
import (
"archive/zip"
"bytes"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"log"
@Ompluscator
Ompluscator / assert.go
Last active June 7, 2022 09:17
mocking
import (
//
// some imports
//
"github.com/stretchr/testify/assert"
)
func TestUser_HasAccess(t *testing.T) {
assert.False(t, User{}.HasAccess("admin"))