Groups | Search | Server Info | Login | Register


Groups > comp.lang.go > #32

Re: quine.go

From rek2 hispagatos <rek2@hispagatos.org.invalid>
Newsgroups comp.lang.go
Subject Re: quine.go
Date 2024-01-02 19:08 +0000
Organization Hispagatos
Message-ID <un1mvt$74m8$1@matrix.hispagatos.org> (permalink)
References <20231231162356.2E8461005FC@tidalhost.archiade.net>

Show all headers | View raw


On 2023-12-31, Jack Ryan <jackryan@example.invalid> wrote:
> package main
>
> import "fmt"
>
> func main() {
>     fmt.Println("Happy New Year 2024!")
>     q := "package main%c%cimport %cfmt%c%c%cfunc main() {%c    fmt.Println(%cHappy New Year 2024!%c)%c    q := %c%s%c%c    fmt.Printf(q, 10, 10, 34, 34, 10, 10, 10, 34, 34, 10, 34, q, 34, 10, 10, 10)%c}%c"
>     fmt.Printf(q, 10, 10, 34, 34, 10, 10, 10, 34, 34, 10, 34, q, 34, 10, 10, 10)
> }
>
>


Happy new years to all of you as well!
PD: Very neat! 


Happy Hacking 
ReK2 

-- 
- {gemini,https}://{,rek2.}hispagatos.org - mastodon: @rek2@hispagatos.space
- [https|gemini]://2600.Madrid            - https://hispagatos.space/@rek2
- https://keyoxide.org/A31C7CE19D9C58084EA42BA26C0B0D11E9303EC5

Back to comp.lang.go | Previous | NextPrevious in thread | Find similar


Thread

quine.go Jack Ryan <jackryan@example.invalid> - 2023-12-31 11:23 -0500
  Re: quine.go rek2 hispagatos <rek2@hispagatos.org.invalid> - 2024-01-02 19:08 +0000

csiph-web