Skip to content

Instantly share code, notes, and snippets.

View ceaksan's full-sized avatar
🤹

Ceyhun Aksan ceaksan

🤹
View GitHub Profile
package main
import (
"fmt"
"time"
)
type MyError struct {
When time.Time
What string
package main
import (
"fmt"
"os"
)
type Reader interface {
Read(b []byte) (n int, err error)
}
package main
import (
"fmt"
)
type User struct {
FirstName, LastName string
}
package main
import (
"fmt"
)
type Person struct {
FirstName, LastName string
}
package main
import (
"fmt"
)
var (
coins = 50
users = []string{
"Matthew", "Sarah", "Augustus", "Heidi", "Emilie",
package main
import (
"database/sql"
"os"
"strconv"
"strings"
_ "github.com/go-sql-driver/mysql"
strip "github.com/grokify/html-strip-tags-go"
$( '.className' ).map(function() {
return $( this ).text();
}).get().join( ',' );
package main
import (
"os"
scp "github.com/bramvdbogaerde/go-scp"
"github.com/bramvdbogaerde/go-scp/auth"
"golang.org/x/crypto/ssh"
)
package main
import (
"bufio"
"fmt"
"io"
"os"
)
func main() {
jQuery(document).ready(function() {
jQuery('iframe').closest('p').addClass('aligncenter');
});
jQuery('iframe').parent('p').addClass('aligncenter');