This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Copyright {{year}} {{owner}} | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: go | |
go: | |
- 1.14.4 | |
services: | |
- postgresql | |
before_script: | |
- go mod download |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package database_test | |
import ( | |
"go-mock-postgre/database" | |
"go-mock-postgre/database/mock" | |
"testing" | |
_ "github.com/jinzhu/gorm/dialects/postgres" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mock | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"os/exec" | |
"path/filepath" | |
"runtime" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package database | |
import ( | |
"github.com/jinzhu/gorm" | |
) | |
// Users - | |
type Users struct { | |
gorm.Model | |
Username string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package database | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"github.com/jinzhu/gorm" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Respected Sir/Madam, | |
It is known that due to corona outbreak, whole India is closed till 14th April (Counting 21 days). However observing graph given in https://www.covid19india.org/ , Lockdown is more likely to be extended. | |
There are no official dates for End semester exams given by GTU. Still some GTU affiliated colleges are panicked regarding vivas, Question banks, Projects, Group projects, Design Engineering Sheets. Few decided final submissions and that too during lockdown. Currently, Every student is not at fair level. Not everyone have enough resources, materials and access to stationaries to complete submission successfully. | |
On behalf of all GTU Students, My humble request is to official announcement to not to put extra pressure related to submissions on students during lockdown. | |
Thank you for listening and please take this into consideration. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ts = require('typescript'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const FILENAME_PROVIDED_BY_DOCER = 'foo.tsx'; | |
const FILEPATH_PROVIDED_BY_DOCER = '/path/to/foo.tsx'; | |
// UTILS | |
// object has key? | |
const has = (object, key) => Object.prototype.hasOwnProperty.call(object, key); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function iterator(node) { | |
if (node) { | |
switch (node.type) { | |
case "AssignmentExpression": | |
iterator(node.right) | |
break; | |
case "ArrayExpression": | |
for (var i = 0, i_bound = node.elements.length; i < i_bound; i++) iterator(node.elements[i]) | |
break; |