GithubHelp home page GithubHelp logo

hahalanguage's Introduction

Hahalanguage

Hahalanguage is a Go programming language package that provides fun and "haha" related functionality. It includes functions to check for the presence of "5" or "ha" in various data types and a function to locate the positions of "h" and "a" in a given string.

Let's have some fun!

Installation

To use this package, you can include it in your Go project using the following import statement:

import "github.com/Phadoo131/hahalanguage/model"

Functions:

FunOrFalse(T any) bool This function checks if the provided input contains the element "5" or "ha" and returns true if found, otherwise false. It supports various data types including integers, runes, bytes, strings, slices of strings, and slices of integers.

WhereIsFun(text string) string This function searches for the positions of "h" and "a" in a given string. If "h" is found before "a," it returns the positions as a string. Otherwise, it returns a message indicating that there's no fun in the input string.

HahahaInTH() int A fun function that always returns 555. Because why not?

HahaThis(T any) string This function transforms the provided input into a string containing "5" or "ha" or "lol" based on its data type. It's all about fun and "haha."

Usage Here's an example of how to use the Hahalanguage package:

package main

import (
    "fmt"
    "github.com/Phadoo131/hahalanguage/model"
)

func main() {
    haha := &model.Hahalanguage{}

    // Check if "5" or "ha" is present in various data types
    result := haha.FunOrFalse(12345)
    fmt.Println(result) // true

    // Find the positions of "h" and "a" in a string
    text := "Have some fun!"
    position := haha.WhereIsFun(text)
    fmt.Println(position) // "The fun is at the index: 0, 1"

    // Have some fun with HahaThis
    funString := haha.HahaThis("hello world")
    fmt.Println(funString) // "hahaha lol lol lol lol lololololol"

    // Get your daily dose of "5"
    fiveString := haha.HahaThis([]int{1, 2, 3})
    fmt.Println(fiveString) // "555"

    // Enjoy endless "ha"s
    haString := haha.HahaThis([]byte{1, 2, 3})
    fmt.Println(haString) // "hahaha"
}

hahalanguage's People

Contributors

phadoo131 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.